Merge branch 'patch-1' into 'master'

Fix issue #58: There is no grub folder in the latest grub package.

Closes #58

See merge request drizzt/vps2arch!49
This commit is contained in:
Timothy Redaelli 2018-12-10 15:14:53 +00:00
commit 7e93a39dcc

View file

@ -174,10 +174,10 @@ configure_bootloader() {
*) root_devs="${root_devs:+$root_devs }$tmp" ;; *) root_devs="${root_devs:+$root_devs }$tmp" ;;
esac esac
done done
grub-mkconfig > /boot/grub/grub.cfg
for root_dev in $root_devs; do for root_dev in $root_devs; do
grub-install --target=i386-pc --recheck --force "$root_dev" grub-install --target=i386-pc --recheck --force "$root_dev"
done done
grub-mkconfig > /boot/grub/grub.cfg
elif [ "$bootloader" = "syslinux" ]; then elif [ "$bootloader" = "syslinux" ]; then
# If you are still using eth* as interface name, disable "strange" ifnames # If you are still using eth* as interface name, disable "strange" ifnames
grep -q '^[[:space:]]*eth' /proc/net/dev && tmp="net.ifnames=0" grep -q '^[[:space:]]*eth' /proc/net/dev && tmp="net.ifnames=0"