-if ifclass tp; then
- d=$target/q/root/shadow
- mkdir -p $d
- # ls -la /var/lib/fai/config/distro-install-common
- cp /var/lib/fai/config/distro-install-common/traci{,-simple} $d
- chmod -R o-rwx $d
- d=$target/q/root/luks
- mkdir -p $d
- cp /var/lib/fai/config/distro-install-common/host-{tp,demohost} $d
- chmod -R o-rwx $d
-fi
+#### this bit is duplicated in rootsshsync
+f=/var/lib/fai/config/files/root/.ssh/authorized_keys/STANDARD
+d=$target/etc/initramfs-tools
+d2=$target/etc/dropbear-initramfs
+mkdir -p $d/root/.ssh $d2
+chmod 700 $d/root $d/root/.ssh
+# i think buster uses the second, flidas uses the first.
+cp -p $f $d/root/.ssh/authorized_keys
+cp -p $f $d2/authorized_keys