Kaydet (Commit) f3f23ab4 authored tarafından aliriza's avatar aliriza

bind mount fix

üst 2653156c
......@@ -177,9 +177,9 @@ class Stage:
class Mount:
def mount(rootfs):
for dir in ["dev", "dev/pts", "sys", "proc", "run"]:
run("mount --bind /{1} /{0}/{1} 2>/dev/null".format(rootfs, dir))
run("mount --make-private --bind /{1} /{0}/{1} 2>/dev/null".format(rootfs, dir))
run("ln -s {0}/proc/self/fd {0}/dev/fd 2>/dev/null || true".format(rootfs), vital=False)
run("ln -s {0}/proc/self/mounts {0}/etc/mtab || true")
run("ln -s {0}/proc/self/mounts {0}/etc/mtab || true".format(rootfs), vital=False)
def unmount(rootfs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment