only copy authorized_keys if it exists
This commit is contained in:
parent
29f9ac51b7
commit
d014a2433e
|
@ -394,9 +394,11 @@ postbootstrap_configuration() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# authorized_keys of root will be copied anyway
|
# authorized_keys of root will be copied anyway
|
||||||
mkdir -p /archroot/root/.ssh/
|
if [ -e /root/.ssh/authorized_keys ]; then
|
||||||
chmod 700 /archroot/root/.ssh/
|
mkdir -p /archroot/root/.ssh/
|
||||||
cp -p /root/.ssh/authorized_keys /archroot/root/.ssh/authorized_keys
|
chmod 700 /archroot/root/.ssh/
|
||||||
|
cp -p /root/.ssh/authorized_keys /archroot/root/.ssh/authorized_keys
|
||||||
|
fi
|
||||||
|
|
||||||
# setup machine id
|
# setup machine id
|
||||||
chroot /archroot systemd-machine-id-setup
|
chroot /archroot systemd-machine-id-setup
|
||||||
|
|
Loading…
Reference in New Issue