Skip to content
Snippets Groups Projects
Verified Commit 294cb299 authored by anarcat's avatar anarcat
Browse files

add more automation todos

parent c2cdab53
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,8 @@ which we'll use below.
tmpfs /tmp tmpfs defaults,size=512m 0 0
EOF
TODO: take the `fstab` from FAI.
6. Copy paste your key into the root's authorized keys, just to make
sure you can login:
......@@ -160,6 +162,17 @@ which we'll use below.
/root/tsa-misc/installer/tor-install-luks-setup /target
TODO: use the FAI keyfiles and set a LUKS passphrase for the first
disk. For example:
LUKS_PASSPHRASE=$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 30) &&
echo $LUKS_PASSPHRASE | cryptsetup luksAddKey /dev/md1 --key-file=/tmp/fai/crypt_dev_md1 &&
echo $LUKS_PASSPHRASE | cryptsetup luksAddKey /dev/md2 --key-file=/tmp/fai/crypt_dev_md2 &&
cryptsetup luksRemoveKey /dev/md1 --key-file=/tmp/fai/crypt_dev_md1 &&
cryptsetup luksRemoveKey /dev/md2 --key-file=/tmp/fai/crypt_dev_md2
... although that doesn't correctly setup the second disk to use a keyfile.
8. Review the crypto configuration:
cat /target/etc/crypttab
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment