1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 11:29:46 +03:00

helpers: mount: fix rootfs mount path (MR 2344)

Subtle...

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-07-08 15:56:04 +02:00
parent 7741f74d44
commit afbecb7184
No known key found for this signature in database
GPG key ID: 0583312B195F64B6

View file

@ -109,6 +109,6 @@ def mount_device_rootfs(chroot_rootfs: Chroot) -> PurePath:
"rootfs_qemu-amd64")
:returns: the mountpoint (relative to the native chroot)
"""
mountpoint = PurePath("/mnt", chroot_rootfs.dirname)
mountpoint = PurePath("/mnt", str(chroot_rootfs))
pmb.helpers.mount.bind(chroot_rootfs.path, Chroot.native() / mountpoint)
return mountpoint