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;;
|
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 ""
|
||||||
|
|
Loading…
Reference in a new issue