diff options
author | Simon Rettberg | 2020-02-25 10:53:10 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-02-25 10:53:10 +0100 |
commit | db68e881dec948cdfbdd2ea57cd52204a6e636bc (patch) | |
tree | 55eb8e4549cccc8ee487c4e2d0001309c4adcabf /satellit_upgrader | |
parent | [SSUS] Don't reinstall mariadb every time (diff) | |
download | setup-scripts-db68e881dec948cdfbdd2ea57cd52204a6e636bc.tar.gz setup-scripts-db68e881dec948cdfbdd2ea57cd52204a6e636bc.tar.xz setup-scripts-db68e881dec948cdfbdd2ea57cd52204a6e636bc.zip |
[SSUS] Ask to switch to ipxe if ipxelinux is still enabled
Diffstat (limited to 'satellit_upgrader')
-rw-r--r-- | satellit_upgrader/updater.template.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh index 9de22c7..0490138 100644 --- a/satellit_upgrader/updater.template.sh +++ b/satellit_upgrader/updater.template.sh @@ -433,8 +433,8 @@ if [ -n "$TGZ_SLXADMIN" ]; then diffcp "slxadmin-boot.service" "/etc/systemd/system/slxadmin-boot.service" ln -nfs "../slxadmin-boot.service" "/etc/systemd/system/multi-user.target.wants/slxadmin-boot.service" # Ask about ipxe / pxelinux - if [ -z "$bootmodule" ] || ! [ -d "$PATH_SLXADMIN/modules-available/$bootmodule" ]; then - bootmodule="serversetup-bwlp-pxelinux" + if [ -z "$bootmodule" ] || [ "$bootmodule" = "serversetup-bwlp-pxelinux" ] || ! [ -d "$PATH_SLXADMIN/modules-available/$bootmodule" ]; then + bootmodule="serversetup-bwlp-ipxe" if [ -t 0 ] && [ -t 1 ]; then echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "Congratulations! You have won a bwLehrpool-Server with iPXE support!" @@ -442,13 +442,14 @@ if [ -n "$TGZ_SLXADMIN" ]; then echo "It is required for EFI-only netboot (Fujitsu Q958) and assigning different" echo "menus to individual rooms / locations." echo "(Instructions on changing this later can be found in the wiki.)" - echo -n "If unsure, say NO here. [y/n]: " + echo "Please note that legacy ipxelinux4 support will be removed in the next release." + echo -n "If unsure, say YES here. [y/n]: " read answer while ! [[ "$answer" =~ ^[nNyY] ]]; do echo -n "Please answer [Y]es or [N]o: " read answer done - [[ "$answer" =~ ^[yY] ]] && bootmodule="serversetup-bwlp-ipxe" + [[ "$answer" =~ ^[nN] ]] && bootmodule="serversetup-bwlp-pxelinux" else echo "(Not asking about iPXE vs. pxelinux 4 because we're not running from a terminal)" fi |