forked from Mirror/pmbootstrap
chroot: mount: skip mounted targets (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
b447c20545
commit
759fdd655b
1 changed files with 2 additions and 2 deletions
|
@ -95,8 +95,8 @@ def mount(chroot: Chroot):
|
||||||
# Mount if necessary
|
# Mount if necessary
|
||||||
for source, target in mountpoints.items():
|
for source, target in mountpoints.items():
|
||||||
target_outer = chroot / target
|
target_outer = chroot / target
|
||||||
#raise RuntimeError("test")
|
if not pmb.helpers.mount.ismount(target_outer):
|
||||||
pmb.helpers.mount.bind(source, target_outer)
|
pmb.helpers.mount.bind(source, target_outer)
|
||||||
|
|
||||||
|
|
||||||
def mount_native_into_foreign(chroot: Chroot):
|
def mount_native_into_foreign(chroot: Chroot):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue