move menhera to the new filesystem
This commit is contained in:
parent
4ad9d5e455
commit
3717d58dd0
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,9 @@ swap_root() {
|
||||||
for i in dev proc sys run; do mount --move "${OLDROOT}/$i" "${NEWROOT}/$i"; done
|
for i in dev proc sys run; do mount --move "${OLDROOT}/$i" "${NEWROOT}/$i"; done
|
||||||
mount -t tmpfs tmpfs "${NEWROOT}/tmp"
|
mount -t tmpfs tmpfs "${NEWROOT}/tmp"
|
||||||
|
|
||||||
|
mkdir -p "${WORKDIR}"
|
||||||
|
mount --move "${OLDROOT}/${WORKDIR}" "${WORKDIR}"
|
||||||
|
|
||||||
echo "Restarting SSH daemon..."
|
echo "Restarting SSH daemon..."
|
||||||
systemctl restart ssh
|
systemctl restart ssh
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue