mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-14 05:04:51 +08:00
Update InstallNET.sh
This commit is contained in:
parent
dd88269c3b
commit
1380f4308c
1 changed files with 4 additions and 0 deletions
|
@ -4299,6 +4299,10 @@ find . | cpio -o -H newc | gzip -1 >/tmp/initrd.img
|
|||
# Debian/Ubuntu/Kali/AlpineLinux Grub1 setting start
|
||||
if [[ ! -z "$GRUBTYPE" && "$GRUBTYPE" == "isGrub1" ]]; then
|
||||
if [[ "$setNetbootXyz" == "0" ]]; then
|
||||
# In templates of Debian of equinix.com, the default "grub.cfg" is not match with the standard format, so it should be re-generated.
|
||||
[[ ! $(grep -iE '/etc/grub.d|begin|end|savedefault|load_video|gfxmode' $GRUBDIR/$GRUBFILE) ]] && {
|
||||
grub-mkconfig -o $GRUBDIR/$GRUBFILE >>/dev/null 2>&1
|
||||
}
|
||||
READGRUB='/tmp/grub.read'
|
||||
[[ -f $READGRUB ]] && rm -rf $READGRUB
|
||||
touch $READGRUB
|
||||
|
|
Loading…
Reference in a new issue