From 2545ddfadbe38d2bc2102d8650195f697f700caa Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Sat, 9 Sep 2023 02:05:55 +0900 Subject: [PATCH] Update InstallNET.sh --- Linux_reinstall/InstallNET.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index c1c531e..0eb07c6 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -3098,7 +3098,7 @@ fi echo -ne "\n${aoiBlue}# Installation Starting${plain}\n" -[[ "$ddMode" == '1' ]] && echo -ne "${blue}Auto Mode${plain} Insatll [${yellow}$ReleaseName${plain}]\n$DDURL\n" +[[ "$ddMode" == '1' ]] && echo -ne "\n${blue}Overwriting Packaged Image Mode${plain} Target System [${yellow}$ReleaseName${plain}]\n$DDURL\n" if [[ "$linux_relese" == 'centos' ]]; then if [[ "$DIST" != "$UNVER" ]]; then @@ -4120,5 +4120,17 @@ else echo && ls -AR1 "$HOME/loader" fi +[[ "$setAutoConfig" != "0" || "$setNetbootXyz" != "1" || "$loaderMode" == "0" ]] && { + echo -ne "\n${aoiBlue}# Grub and Unattended Disposition Files${plain}\n\n" + echo "$GRUBDIR/$GRUBFILE" + if [[ "$linux_relese" == 'debian' ]] || [[ "$linux_relese" == 'kali' ]]; then + echo "/tmp/boot/preseed.cfg" + elif [[ "$linux_relese" == 'centos' ]] || [[ "$linux_relese" == 'rockylinux' ]] || [[ "$linux_relese" == 'almalinux' ]] || [[ "$linux_relese" == 'fedora' ]]; then + echo "/tmp/boot/ks.cfg" + elif [[ "$linux_relese" == 'alpinelinux' ]]; then + echo "/tmp/boot/init" + fi +} + echo -ne "\n[${green}Finish${plain}] Input '${yellow}reboot${plain}' to continue the subsequential installation.\n" exit 1