Move from integer to string check

This commit is contained in:
maride 2018-03-04 15:18:32 +01:00
parent 54530ac202
commit 3c8664b1f5

View File

@ -26,7 +26,7 @@ else
arch-chroot /mnt grub-install --target=i386-pc /dev/*da
fi
if [ "$cryptroot" -eq 1 ]; then
if [ "$cryptroot" == "yes" ]; then
echo "GRUB_CMDLINE_LINUX='cryptdevice=UUID=`blkid -o value ${blockdevice}2 | head -n 1`:cryptroot'" > /mnt/etc/default/grub
fi