From 2eeda18ecab961cf6a0810ee097e466eef538f14 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 22 Aug 2015 20:08:17 +0200 Subject: [PATCH] Add luks support --- archfi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/archfi b/archfi index 78f514f..bbdd971 100644 --- a/archfi +++ b/archfi @@ -546,11 +546,17 @@ formatdevice(){ xfs) mkfs.xfs -f $2;; jfs) mkfs.jfs -f $2;; luks) + echo "Create luks device :" # string cryptsetup luksFormat $2 + echo "" + echo "Open luks device :" # string cryptsetup luksOpen $2 $1 + pressanykey formatdevice $1 /dev/mapper/$1 noluks rootdev=/dev/mapper/$1 #luksdrive=1 + echo "" + echo "luks device created !" # string ;; esac echo ""