diff options
author | MatMoul <matmoul@gmail.com> | 2015-08-22 21:51:03 +0200 |
---|---|---|
committer | MatMoul <matmoul@gmail.com> | 2015-08-22 21:51:03 +0200 |
commit | cae60cf459a05682586d31a45194ec51d9846ba6 (patch) | |
tree | 5bce2941b5599d1ec00d35f8ca53a2a9e17d0de5 | |
parent | a5b957a0e69ac88ee970e005bc0daa741f7869a7 (diff) | |
download | hyperfi-cae60cf459a05682586d31a45194ec51d9846ba6.tar.lz hyperfi-cae60cf459a05682586d31a45194ec51d9846ba6.tar.xz hyperfi-cae60cf459a05682586d31a45194ec51d9846ba6.zip |
Add luks support
-rw-r--r-- | archfi | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -557,8 +557,9 @@ formatdevice(){ if [ "$1" = "root" ]; then luksroot=1 luksrootuuid=$(cryptsetup luksUUID $2) - #else - # luksdrive=1 + else + luksdrive=1 + crypttab="$1 UUID=$(cryptsetup luksUUID $2) none" fi echo "" echo "luks device created !" # string @@ -898,7 +899,8 @@ archgenfstab(){ } archgencryptotab(){ - echo "" + clear + echo "$crypttab" > /mnt/etc/crypttab } archgenmkinitcpio(){ |