Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-09-09 02:05:55 +09:00 committed by GitHub
parent b8566293dd
commit 2545ddfadb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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