hope: fix ssh/authorized_keys not copying sometimes?
This commit is contained in:
parent
1bafb82cd0
commit
65227bf951
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue