Merge pull request #12 from wzyboy/patch-1
Copy authorized_keys of root
This commit is contained in:
commit
29f9ac51b7
|
@ -393,6 +393,11 @@ postbootstrap_configuration() {
|
||||||
cp -al /{home,root} /archroot/
|
cp -al /{home,root} /archroot/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# authorized_keys of root will be copied anyway
|
||||||
|
mkdir -p /archroot/root/.ssh/
|
||||||
|
chmod 700 /archroot/root/.ssh/
|
||||||
|
cp -p /root/.ssh/authorized_keys /archroot/root/.ssh/authorized_keys
|
||||||
|
|
||||||
# setup machine id
|
# setup machine id
|
||||||
chroot /archroot systemd-machine-id-setup
|
chroot /archroot systemd-machine-id-setup
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue