Add luks support
This commit is contained in:
parent
c3e23c76ce
commit
2eeda18eca
1 changed files with 6 additions and 0 deletions
6
archfi
6
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 ""
|
||||
|
|
Loading…
Reference in a new issue