diff options
author | Simon Rettberg | 2018-09-21 12:37:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-09-21 12:37:54 +0200 |
commit | 906c5293dd7a9f582a36d235e0b13887a861999a (patch) | |
tree | 2ae8f93aef70fc5dccb8f429b66450f92100cc56 /satellit_upgrader | |
parent | [borg] Ignore /var/lib/apt/lists (diff) | |
download | setup-scripts-906c5293dd7a9f582a36d235e0b13887a861999a.tar.gz setup-scripts-906c5293dd7a9f582a36d235e0b13887a861999a.tar.xz setup-scripts-906c5293dd7a9f582a36d235e0b13887a861999a.zip |
[*] Preparations for new iPXE (mtools, mkdir)
Diffstat (limited to 'satellit_upgrader')
-rw-r--r-- | satellit_upgrader/updater.template.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh index 16d166b..b51a0f4 100644 --- a/satellit_upgrader/updater.template.sh +++ b/satellit_upgrader/updater.template.sh @@ -209,6 +209,8 @@ if [ -n "$TGZ_TASKMANAGER" ]; then tar -x -C "$PATH_TASKMANAGER" -f "$TMPDIR/$TGZ_TASKMANAGER" fixperms "$PATH_TASKMANAGER" root:root chmod -R a+x "$PATH_TASKMANAGER/scripts" + mkdir -p -m 0755 "/srv/openslx/www/boot/download" + fixperms "/srv/openslx/www/boot/download" taskmanager:www-data echo "Restarting service" restart_service taskmanager echo "Taskmanager upgrade complete" @@ -238,6 +240,10 @@ if [ -n "$TGZ_IPXE" ]; then } & IPXE_PID=$! fi +# Need mtools +if ! which mformat &>/dev/null; then + failprint apt-get install -y mtools +fi # ************************** SLX-Admin ********************* if [ -n "$TGZ_SLXADMIN" ]; then @@ -425,6 +431,10 @@ echo "* TFTP" # ************************** TFTP ************************** if [ -n "$TGZ_TFTP" ]; then + # TODO: + # ipxelinux.0 -> undionly.kkkpxe + # Convert & Remove other menus + # Redirect 2x lighttpd [ -e "$TMPDIR/$TGZ_TFTP" ] || perror "$TGZ_TFTP missing from payload" echo "Extracting tftp server dir contents" rm -rf -- "$PATH_TFTP/v4" "$PATH_TFTP/v6" "$PATH_TFTP/ipxelinux.0" "$PATH_TFTP/pxelinux.0" |