From cae60cf459a05682586d31a45194ec51d9846ba6 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 22 Aug 2015 21:51:03 +0200 Subject: [PATCH] Add luks support --- archfi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/archfi b/archfi index b8c63d9..fbf5d31 100644 --- a/archfi +++ b/archfi @@ -557,8 +557,9 @@ formatdevice(){ if [ "$1" = "root" ]; then luksroot=1 luksrootuuid=$(cryptsetup luksUUID $2) - #else - # luksdrive=1 + else + luksdrive=1 + crypttab="$1 UUID=$(cryptsetup luksUUID $2) none" fi echo "" echo "luks device created !" # string @@ -898,7 +899,8 @@ archgenfstab(){ } archgencryptotab(){ - echo "" + clear + echo "$crypttab" > /mnt/etc/crypttab } archgenmkinitcpio(){