diff --git a/pmb/helpers/mount.py b/pmb/helpers/mount.py index f408a1b7..45f0d0d4 100644 --- a/pmb/helpers/mount.py +++ b/pmb/helpers/mount.py @@ -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