3 # These are things we can do before package_config packages get installed.
5 # exit for any vm except demohost, or if we are doing a dirinstall
6 if ifclass VM
&& ! ifclass demohost || ifclass VOL_BUSTER_BOOTSTRAP ||
[[ ! $FAI_ACTION ||
$FAI_ACTION = dirinstall
]]; then
10 keyfile
=/var
/lib
/fai
/config
/distro-install-common
/luks
/host-
$HOSTNAME
11 f
=$target/root
/keyscript
21 # for hosts which don't have these data volumes, copy the specific
23 if ifclass demohost
; then
24 files
=(/var
/lib
/fai
/config
/distro-install-common
/luks
/host-demohost
)
26 files
=(/var
/lib
/fai
/config
/distro-install-common
/luks
/host-tp
)
28 if [[ ${files[0]} ]]; then
36 #### this bit is duplicated in rootsshsync
37 f
=/var
/lib
/fai
/config
/files
/root
/.ssh
/authorized_keys
/STANDARD
38 d
=$target/etc
/initramfs-tools
39 d2
=$target/etc
/dropbear-initramfs
40 mkdir
-p $d/root
/.
ssh $d2
41 chmod 700 $d/root
$d/root
/.
ssh
42 # i think buster uses the second, flidas uses the first.
43 cp -p $f $d/root
/.ssh
/authorized_keys
44 cp -p $f $d2/authorized_keys