X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fpartition.DEFAULT;h=ab436bdad797d35b60e0339237b731a164fbd09e;hb=948ef49d2b4d7680da2355acf9da86f81ca75ecd;hp=2905435b752b89d6b5a7696f1b680ab62f1a658a;hpb=ee37d990c89bb3bab1b54e3b3fb43e9f79ed039b;p=automated-distro-installer diff --git a/fai/config/hooks/partition.DEFAULT b/fai/config/hooks/partition.DEFAULT index 2905435..ab436bd 100755 --- a/fai/config/hooks/partition.DEFAULT +++ b/fai/config/hooks/partition.DEFAULT @@ -297,8 +297,7 @@ bpart() { # btrfs a partition } -# keyfiles generated like: -# head -c 2048 /dev/urandom | od | s dd of=/q/root/luks/host-demohost +# see README for docs about how to create these luks_dir=${LUKS_DIR:-/var/lib/fai/config/distro-install-common/luks} @@ -318,12 +317,12 @@ fi # # note, corresponding changes in /b/ds/keyscript-{on,off} if ifclass tpnew; then lukspw=$(cat $luks_dir/traci) -elif ifclass BUSTER_LINODE; then - lukspw=$(cat $luks_dir/li) elif ifclass ziva; then lukspw=$(cat $luks_dir/ziva) elif ifclass demohost; then lukspw=x +elif [[ -e $luks_dir/$HOSTNAME ]]; then + lukspw=$(cat $luks_dir/$HOSTNAME) else lukspw=$(cat $luks_dir/iank) fi