Browse Source

fix /tmp/menhera.sh: line 178: /usr/bin/mount: No such file or directory

master
James Swineson 1 year ago
committed by GitHub
parent
commit
d411f9d414
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      menhera.sh

6
menhera.sh

@ -175,7 +175,11 @@ menhera::swap_root() {
NEWROOT="/"
# 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"
mkdir -p "${WORKDIR}"

Loading…
Cancel
Save