Fix: syslinux UUID

This commit is contained in:
natemaia 2018-12-16 00:24:44 -08:00
parent 7324ec38cb
commit 875b8738ba
2 changed files with 6 additions and 2 deletions

View File

@ -79,7 +79,7 @@ _PackageBody="\nUse [Space] to (de)select packages(s) to install from the list b
_WMLogin="Select Login Managment"
_LoginTypeBody="\nSelect how you want to log in, using a display manager or xinit."
_WMLoginBody="\nSelect which window manager or desktop to use as your primary login.\n\nThis can be changed by editing your ~/.xinitrc"
_AutoLoginBody="\nDo you want to enable auto-login and have 'startx' run when the computer starts?"
_AutoLoginBody="\nDo you want autologin and auto-startx enabled for your user?"
# Set keymap, hwclock, local and timezone
_CMapTitle="Virtual Console Keymap"

View File

@ -217,7 +217,11 @@ EOF
install_bootloader()
{
if ! [[ $ROOT_PART =~ /dev/mapper ]]; then
ROOT_PART_ID="UUID=$(blkid -s PARTUUID -o value $ROOT_PART)"
if [[ $BOOTLDR == 'syslinux' && $SYS == 'BIOS' ]]; then
ROOT_PART_ID="UUID=$(blkid -s UUID -o value $ROOT_PART)"
else
ROOT_PART_ID="UUID=$(blkid -s PARTUUID -o value $ROOT_PART)"
fi
else
# for LVM we just use the partition label
ROOT_PART_ID="$ROOT_PART"