functions/default.sh : Define LB_PRIMARY_BOOTLOADER at the Set_defaults function which it's the right place where to do it

This commit is contained in:
Adrian Gibanel Lopez 2016-01-18 03:04:00 +00:00
parent 489a09ba92
commit 01a9df8ce3
1 changed files with 2 additions and 3 deletions

View File

@ -537,6 +537,8 @@ Set_defaults ()
esac
fi
LB_PRIMARY_BOOTLOADER=$(echo "${LB_BOOTLOADERS}" | awk -F, '{ print $1 }')
# Setting checksums
case "${LB_MODE}" in
progress-linux)
@ -845,9 +847,6 @@ Check_defaults ()
fi
fi
LB_PRIMARY_BOOTLOADER=$(echo "${LB_BOOTLOADERS}" | awk -F, '{ print $1 }')
if [ "${LB_PRIMARY_BOOTLOADER}" = "syslinux" ]
then
# syslinux + fat or ntfs, or extlinux + ext[234] or btrfs