Add luks support

This commit is contained in:
MatMoul 2015-08-22 20:08:17 +02:00
parent c3e23c76ce
commit 2eeda18eca

6
archfi
View file

@ -546,11 +546,17 @@ formatdevice(){
xfs) mkfs.xfs -f $2;; xfs) mkfs.xfs -f $2;;
jfs) mkfs.jfs -f $2;; jfs) mkfs.jfs -f $2;;
luks) luks)
echo "Create luks device :" # string
cryptsetup luksFormat $2 cryptsetup luksFormat $2
echo ""
echo "Open luks device :" # string
cryptsetup luksOpen $2 $1 cryptsetup luksOpen $2 $1
pressanykey
formatdevice $1 /dev/mapper/$1 noluks formatdevice $1 /dev/mapper/$1 noluks
rootdev=/dev/mapper/$1 rootdev=/dev/mapper/$1
#luksdrive=1 #luksdrive=1
echo ""
echo "luks device created !" # string
;; ;;
esac esac
echo "" echo ""