X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fpartition.DEFAULT;h=61da95a3f4162d003d6476fbc61a88ff35b32932;hp=bb625fd1d35c1305ef22f1cdea477783739b5f4b;hb=61c3a58fcfadab7c333487f887b3f9f3a53bb93a;hpb=a199d585d33ace63662c0fea99a5c5d6d498d14b diff --git a/fai/config/hooks/partition.DEFAULT b/fai/config/hooks/partition.DEFAULT index bb625fd..61da95a 100755 --- a/fai/config/hooks/partition.DEFAULT +++ b/fai/config/hooks/partition.DEFAULT @@ -29,8 +29,10 @@ fi # s # source /b/fai/fai-wrapper # - set any appropriate classes with: fai-setclass OPT1... which sets CLASS_OPT1=true... -# or run eval-fai-classfile FILE -# export luks_dir=/q/root/luks +# or run eval-fai-classfile FILE. +# - Set a VOL_DISTROVER, eg: +# fai-setclass VOL_NABIA +# - export luks_dir=/q/root/luks # # OPTIONS: # @@ -650,3 +652,21 @@ ROOT_PARTITION=\${ROOT_PARTITION:-$first_root_crypt} SWAPLIST=\${SWAPLIST:-"${swaps[@]}"} EOF fi + +# initial setup of extra data fs, mounted, +# btrfs subvol create nocow +# chattr +C nocow +# chown iank.iank nocow + +if [[ $HOSTNAME == kd ]]; then + cat >>/tmp/fai/crypttab <> /tmp/fai/fstab <