hope: fix ssh/authorized_keys not copying sometimes?

This commit is contained in:
lassulus 2022-11-23 17:11:58 +01:00
parent 1bafb82cd0
commit 65227bf951

View file

@ -81,7 +81,7 @@
boot.initrd.postMountCommands = '' boot.initrd.postMountCommands = ''
mkdir -m 700 -p /mnt-root/root/.ssh mkdir -m 700 -p /mnt-root/root/.ssh
mkdir -m 755 -p /mnt-root/etc/ssh mkdir -m 755 -p /mnt-root/etc/ssh
if [[ -f /ssh/authorized_keys ]]; then if [[ -f ssh/authorized_keys ]]; then
install -m 400 ssh/authorized_keys /mnt-root/root/.ssh install -m 400 ssh/authorized_keys /mnt-root/root/.ssh
fi fi
install -m 400 ssh/ssh_host_* /mnt-root/etc/ssh install -m 400 ssh/ssh_host_* /mnt-root/etc/ssh