diff options
author | MatMoul <matmoul@gmail.com> | 2018-12-31 03:13:53 +0100 |
---|---|---|
committer | MatMoul <matmoul@gmail.com> | 2018-12-31 03:13:53 +0100 |
commit | ec968c749099495cf09474a73c99a1584d5db042 (patch) | |
tree | 13581e6dbefd437292bb31434404b2f208f8022d | |
parent | 27f098e6bf5114523f71a4b518e61c0ef48cedde (diff) | |
download | hyperfi-ec968c749099495cf09474a73c99a1584d5db042.tar.lz hyperfi-ec968c749099495cf09474a73c99a1584d5db042.tar.xz hyperfi-ec968c749099495cf09474a73c99a1584d5db042.zip |
Bug correction: syslinux with luks
-rw-r--r-- | archfi | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -420,6 +420,7 @@ selectparts(){ if [ ! "$?" = "0" ]; then return 1 fi + realrootdev=$rootdev homedev=$(whiptail --backtitle "$apptitle" --title "$txtselectpartsmenu" --menu "${txtselectdevice//%1/home}" 0 0 0 \ "none" "-" \ @@ -648,6 +649,7 @@ formatdevice(){ pressanykey formatdevice $1 /dev/mapper/$1 noluks if [ "$1" = "root" ]; then + realrootdev=$rootdev rootdev=/dev/mapper/$1 luksroot=1 luksrootuuid=$(cryptsetup luksUUID $2) @@ -1259,7 +1261,7 @@ archbootloadersyslinuxbmenu(){ archsyslinuxinstall(){ clear - if [ "$(parted ${rootdev::8} print|grep gpt)" != "" ]; then + if [ "$(parted ${realrootdev::8} print|grep gpt)" != "" ]; then echo "Add gptfdisk to support your gpt disk" additionalpkg=$additionalpkg"gptfdisk " fi @@ -1278,8 +1280,8 @@ archsyslinuxinstall(){ clear echo "Updating /boot/syslinux/syslinux.cfg" if [ "$luksroot" = "1" ]; then - echo "sed -i \"/APPEND\ root=/c\ APPEND root=/dev/mapper/root cryptdevice=$rootdev:root rw\" /mnt/boot/syslinux/syslinux.cfg" - sed -i "/APPEND\ root=/c\ APPEND root=/dev/mapper/root cryptdevice=$rootdev:root\ rw" /mnt/boot/syslinux/syslinux.cfg + echo "sed -i \"/APPEND\ root=/c\ APPEND root=/dev/mapper/root cryptdevice=$realrootdev:root rw\" /mnt/boot/syslinux/syslinux.cfg" + sed -i "/APPEND\ root=/c\ APPEND root=/dev/mapper/root cryptdevice=$realrootdev:root\ rw" /mnt/boot/syslinux/syslinux.cfg else echo "sed -i \"/APPEND\ root=/c\ APPEND root=$rootdev rw\" /mnt/boot/syslinux/syslinux.cfg" sed -i "/APPEND\ root=/c\ APPEND root=$rootdev\ rw" /mnt/boot/syslinux/syslinux.cfg |