From 56ad0869a4b2b1e5f297c23b3c9f7186d6f09bcf Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 22 Aug 2015 21:24:16 +0200 Subject: [PATCH] Add luks support --- archfi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archfi b/archfi index de270e9..130e2cc 100644 --- a/archfi +++ b/archfi @@ -903,7 +903,7 @@ archgencryptotab(){ archgenmkinitcpio(){ clear - sed -i "s/block filesystems/block encrypt filesystems/g" /etc/mkinitcpio.conf + sed -i "s/block filesystems/block encrypt filesystems/g" /mnt/etc/mkinitcpio.conf archchroot genmkinitcpio pressanykey } @@ -944,9 +944,9 @@ archinstallgrub(){ fi if [ "$luksroot" = "1" ]; then - if (whiptail --backtitle "$apptitle" --title "${txtinstall//%1/grub}" --yesno "luks root detected ! Add to grub.cfg" --defaultno 0 0) then + if (whiptail --backtitle "$apptitle" --title "${txtinstall//%1/grub}" --yesno "luks root detected ! Add to grub.cfg" 0 0) then clear - sed -i s/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"root=/dev/mapper/root cryptdevice=/dev/disk/by-uuid/$luksrootuuid:root\"/g /etc/default/grub + sed -i s/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"root=/dev/mapper/root cryptdevice=/dev/disk/by-uuid/$luksrootuuid:root\"/g /mnt/etc/default/grub fi fi