fix /tmp/menhera.sh: line 178: /usr/bin/mount: No such file or directory
This commit is contained in:
parent
0a922ee794
commit
d411f9d414
1 changed files with 5 additions and 1 deletions
|
@ -175,7 +175,11 @@ menhera::swap_root() {
|
||||||
NEWROOT="/"
|
NEWROOT="/"
|
||||||
|
|
||||||
# move mounts
|
# move mounts
|
||||||
for i in dev proc sys run; do mount --move "${OLDROOT}/$i" "${NEWROOT}/$i"; done
|
for i in dev proc sys run; do
|
||||||
|
if [ -d "${OLDROOT}/$i" ]; then
|
||||||
|
mount --move "${OLDROOT}/$i" "${NEWROOT}/$i"
|
||||||
|
fi
|
||||||
|
done
|
||||||
mount -t tmpfs -o size=100% tmpfs "${NEWROOT}/tmp"
|
mount -t tmpfs -o size=100% tmpfs "${NEWROOT}/tmp"
|
||||||
|
|
||||||
mkdir -p "${WORKDIR}"
|
mkdir -p "${WORKDIR}"
|
||||||
|
|
Loading…
Reference in a new issue