Add luks support
This commit is contained in:
parent
a5b957a0e6
commit
cae60cf459
1 changed files with 5 additions and 3 deletions
8
archfi
8
archfi
|
@ -557,8 +557,9 @@ formatdevice(){
|
||||||
if [ "$1" = "root" ]; then
|
if [ "$1" = "root" ]; then
|
||||||
luksroot=1
|
luksroot=1
|
||||||
luksrootuuid=$(cryptsetup luksUUID $2)
|
luksrootuuid=$(cryptsetup luksUUID $2)
|
||||||
#else
|
else
|
||||||
# luksdrive=1
|
luksdrive=1
|
||||||
|
crypttab="$1 UUID=$(cryptsetup luksUUID $2) none"
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
echo "luks device created !" # string
|
echo "luks device created !" # string
|
||||||
|
@ -898,7 +899,8 @@ archgenfstab(){
|
||||||
}
|
}
|
||||||
|
|
||||||
archgencryptotab(){
|
archgencryptotab(){
|
||||||
echo ""
|
clear
|
||||||
|
echo "$crypttab" > /mnt/etc/crypttab
|
||||||
}
|
}
|
||||||
|
|
||||||
archgenmkinitcpio(){
|
archgenmkinitcpio(){
|
||||||
|
|
Loading…
Reference in a new issue