From afbecb718456ffe73b8bff0e3d1a4ffaa0bd43ba Mon Sep 17 00:00:00 2001
From: Caleb Connolly <caleb@postmarketos.org>
Date: Mon, 8 Jul 2024 15:56:04 +0200
Subject: [PATCH] helpers: mount: fix rootfs mount path (MR 2344)

Subtle...

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
---
 pmb/helpers/mount.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pmb/helpers/mount.py b/pmb/helpers/mount.py
index f408a1b7b..45f0d0d46 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
-- 
GitLab