move menhera to the new filesystem

This commit is contained in:
James Swineson 2019-04-09 16:34:06 +08:00
parent 4ad9d5e455
commit 3717d58dd0

View file

@ -103,6 +103,9 @@ swap_root() {
for i in dev proc sys run; do mount --move "${OLDROOT}/$i" "${NEWROOT}/$i"; done
mount -t tmpfs tmpfs "${NEWROOT}/tmp"
mkdir -p "${WORKDIR}"
mount --move "${OLDROOT}/${WORKDIR}" "${WORKDIR}"
echo "Restarting SSH daemon..."
systemctl restart ssh
}