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
|
||||
for source, target in mountpoints.items():
|
||||
target_outer = chroot / target
|
||||
#raise RuntimeError("test")
|
||||
pmb.helpers.mount.bind(source, target_outer)
|
||||
if not pmb.helpers.mount.ismount(target_outer):
|
||||
pmb.helpers.mount.bind(source, target_outer)
|
||||
|
||||
|
||||
def mount_native_into_foreign(chroot: Chroot):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue