echo "$line" >> $f
fi
+# ssh host keys
+# note, $BASH_SOURCE is not defined here under fai.
+src=$(dirname "$0")/p/c/machine_specific/$HOSTNAME/filesystem/etc/ssh
+dst=$target/etc/ssh
+if [[ -e $src && -e $dst ]]; then
+ # outside of fai context, we skip this
+ cp -rT $src $dst
+fi
+
dir=/p/c/machine_specific/$HOSTNAME/.unison
$ROOTCMD mkdir -p $dir
echo $ret
}
-# Functions here are commented because they are unused, but left
-# intentionally because they follow the pattern and could be useful in
-# the future.
-#bootdev() { add-part $@ $bootn; }
+bootdev() { add-part $@ $bootn; }
rootdev() { add-part $@ $rootn; }
swapdev() { add-part $@ $swapn; }
grub_extdev() { add-part $@ $grub_extn; }
-#bios_grubdev() { add-part $@ $bios_grubn; }
+bios_grubdev() { add-part $@ $bios_grubn; }
crypt-dev() { echo /dev/mapper/crypt_dev_${1##*/}; }
crypt-name() { echo crypt_dev_${1##*/}; }
root-cryptdev() { crypt-dev $(rootdev $@); }
-#swap-cryptdev() { crypt-dev $(swapdev $@); }
-#root-cryptname() { crypt-name $(rootdev $@); }
-#swap-cryptname() { crypt-name $(swapdev $@); }
+swap-cryptdev() { crypt-dev $(swapdev $@); }
+root-cryptname() { crypt-name $(rootdev $@); }
+swap-cryptname() { crypt-name $(swapdev $@); }
##### end function defs
mkdir -p $dst
mount -o bind $src $dst
fi
-# todo, port this over to the arch install script.
-src=$FAI/distro-install-common/p/c/machine_specific/$HOSTNAME/filesystem/etc/ssh
-dst=/target/etc/ssh
-if [[ -e $src && -e $dst ]]; then
- # outside of fai context, we skip this
- cp -rT $src $dst
-fi
-
-fcopy -riB /etc/ssh
if ifclass VOL_STABLE_BOOTSTRAP; then
fcopy -ri /etc/systemd/system