aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatMoul <matmoul@gmail.com>2018-12-31 03:13:53 +0100
committerMatMoul <matmoul@gmail.com>2018-12-31 03:13:53 +0100
commitec968c749099495cf09474a73c99a1584d5db042 (patch)
tree13581e6dbefd437292bb31434404b2f208f8022d
parent27f098e6bf5114523f71a4b518e61c0ef48cedde (diff)
downloadhyperfi-ec968c749099495cf09474a73c99a1584d5db042.tar.lz
hyperfi-ec968c749099495cf09474a73c99a1584d5db042.tar.xz
hyperfi-ec968c749099495cf09474a73c99a1584d5db042.zip
Bug correction: syslinux with luks
-rw-r--r--archfi8
1 files changed, 5 insertions, 3 deletions
diff --git a/archfi b/archfi
index 0c72fb1..f0fc6e3 100644
--- a/archfi
+++ b/archfi
@@ -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