Compare commits
No commits in common. "4ca5b479891ca248fd2d0f332c4a9d3ba16326ab" and "44546c55a781a17bb2fd8e0e144f2e2a80de0745" have entirely different histories.
4ca5b47989
...
44546c55a7
|
@ -303,7 +303,7 @@ echo 'Install requirements'
|
|||
# Install debian requirements
|
||||
apt-get install -y --no-install-recommends \
|
||||
sudo locales \
|
||||
python-is-python3 python3 python3-dev python3-pip pipenv \
|
||||
python3 python3-dev python3-pip pipenv \
|
||||
dmidecode smartmontools hwinfo pciutils lshw nfs-common < /dev/null
|
||||
|
||||
# Install lshw B02.19 utility using backports (DEPRECATED in Debian 12)
|
||||
|
|
|
@ -17,6 +17,8 @@ detect_user() {
|
|||
# detect user with sudo or already on sudo src https://serverfault.com/questions/568627/can-a-program-tell-it-is-being-run-under-sudo/568628#568628
|
||||
elif [ ! "${userid}" = 0 ] || [ -n "${SUDO_USER}" ]; then
|
||||
SUDO='sudo'
|
||||
# jump to current dir where the script is so relative links work
|
||||
cd "$(dirname "${0}")"
|
||||
# working directory to build the iso
|
||||
ISO_PATH="iso"
|
||||
# detect pure root
|
||||
|
@ -97,7 +99,7 @@ END
|
|||
|
||||
install_netboot() {
|
||||
# if you want to refresh install, remove or move dir
|
||||
if [ ! -d "${tftp_path}" ] || [ "${FORCE:-}" = 'true' ]; then
|
||||
if [ ! -d "${tftp_path}" ] || [ "${FORCE:-}" ]; then
|
||||
${SUDO} mkdir -p "${tftp_path}/pxelinux.cfg"
|
||||
if [ ! -f "${tftp_path}/netboot.tar.gz" ]; then
|
||||
url="http://ftp.debian.org/debian/dists/${VERSION_CODENAME}/main/installer-amd64/current/images/netboot/netboot.tar.gz"
|
||||
|
@ -120,7 +122,7 @@ install_netboot() {
|
|||
|
||||
init_config() {
|
||||
|
||||
# jump to current dir where the script is so relative links work
|
||||
# get where the script is
|
||||
cd "$(dirname "${0}")"
|
||||
|
||||
# this is what we put in the files we modity
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[settings]
|
||||
url = http://10.0.2.2:8000/api/snapshot/
|
||||
token = '5018dd65-9abd-4a62-8896-80f34ac66150'
|
||||
url = http://localhost:8000/api/snapshot/
|
||||
token = '1234'
|
||||
path = /mnt
|
||||
# device = your_device_name
|
||||
# # erase = basic
|
||||
|
|
Loading…
Reference in a new issue