initrd: use install to fix ssh key permissions

This commit is contained in:
lassulus 2022-11-10 14:54:41 +01:00
parent 209edb3996
commit 34a12f0afb

View file

@ -83,6 +83,6 @@
if [[ -f /ssh/authorized_keys ]]; then if [[ -f /ssh/authorized_keys ]]; then
cp ssh/authorized_keys /mnt-root/root/.ssh/ cp ssh/authorized_keys /mnt-root/root/.ssh/
fi fi
cp ssh/ssh_host_* /mnt-root/etc/ssh install -m 400 ssh/ssh_host_* /mnt-root/etc/ssh
''; '';
} }