From 3717d58dd013c9d4f44fd5861452f4e6dd2a3802 Mon Sep 17 00:00:00 2001 From: James Swineson Date: Tue, 9 Apr 2019 16:34:06 +0800 Subject: [PATCH] move menhera to the new filesystem --- menhera.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/menhera.sh b/menhera.sh index 72a1883..e997eb0 100755 --- a/menhera.sh +++ b/menhera.sh @@ -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 }