Compare commits
4 Commits
44546c55a7
...
4ca5b47989
Author | SHA1 | Date |
---|---|---|
pedro | 4ca5b47989 | |
pedro | 1ef84b60e9 | |
pedro | bb4a267ab5 | |
pedro | abaf9a5829 |
|
@ -303,7 +303,7 @@ echo 'Install requirements'
|
|||
# Install debian requirements
|
||||
apt-get install -y --no-install-recommends \
|
||||
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
|
||||
|
||||
# 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
|
||||
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
|
||||
|
@ -99,7 +97,7 @@ END
|
|||
|
||||
install_netboot() {
|
||||
# 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"
|
||||
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"
|
||||
|
@ -122,7 +120,7 @@ install_netboot() {
|
|||
|
||||
init_config() {
|
||||
|
||||
# get where the script is
|
||||
# jump to current dir where the script is so relative links work
|
||||
cd "$(dirname "${0}")"
|
||||
|
||||
# this is what we put in the files we modity
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[settings]
|
||||
url = http://localhost:8000/api/snapshot/
|
||||
token = '1234'
|
||||
url = http://10.0.2.2:8000/api/snapshot/
|
||||
token = '5018dd65-9abd-4a62-8896-80f34ac66150'
|
||||
path = /mnt
|
||||
# device = your_device_name
|
||||
# # erase = basic
|
||||
|
|
Loading…
Reference in New Issue