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