Merge pull request #12 from wzyboy/patch-1

Copy authorized_keys of root
This commit is contained in:
Gavin Li 2015-04-20 04:07:18 -07:00
commit 29f9ac51b7
1 changed files with 5 additions and 0 deletions

View File

@ -392,6 +392,11 @@ postbootstrap_configuration() {
rm -rf /archroot/{home,root}
cp -al /{home,root} /archroot/
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
chroot /archroot systemd-machine-id-setup