Add luks support
This commit is contained in:
parent
1b6f2e971f
commit
56ad0869a4
1 changed files with 3 additions and 3 deletions
6
archfi
6
archfi
|
@ -903,7 +903,7 @@ archgencryptotab(){
|
||||||
|
|
||||||
archgenmkinitcpio(){
|
archgenmkinitcpio(){
|
||||||
clear
|
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
|
archchroot genmkinitcpio
|
||||||
pressanykey
|
pressanykey
|
||||||
}
|
}
|
||||||
|
@ -944,9 +944,9 @@ archinstallgrub(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$luksroot" = "1" ]; then
|
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
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue