nix-community / nix-snapd

Snap package for Nix and NixOS
MIT License
41 stars 2 forks source link

Can't mount /etc/fonts with pieces-os #4

Open drmikecrowe opened 9 months ago

drmikecrowe commented 9 months ago

I thought I'd give this a shot to try pieces, but I'm getting this error. Is this something semi-easy we could solve?

logger.go:93: DEBUG: mount name:"/snap/pieces-os/45/usr/share/fonts" dir:"/usr/share/fonts" type:"none" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: need to create writable mimic needed to create path "/snap/pieces-os/45/gnome-platform/usr/share/libdrm" (original error: cannot operate on read-only filesystem at /snap/pieces-os/45)
logger.go:93: DEBUG: create-writable-mimic "/snap/pieces-os/45"
logger.go:93: DEBUG: mount name:"/snap/pieces-os/45" dir:"/tmp/.snap/snap/pieces-os/45" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"tmpfs" dir:"/snap/pieces-os/45" type:"tmpfs" opts: unparsed:"mode=0755,uid=0,gid=0" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/bin" dir:"/snap/pieces-os/45/bin" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/data" dir:"/snap/pieces-os/45/data" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/etc" dir:"/snap/pieces-os/45/etc" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/lib" dir:"/snap/pieces-os/45/lib" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/meta" dir:"/snap/pieces-os/45/meta" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/meta.zenity-integration" dir:"/snap/pieces-os/45/meta.zenity-integration" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/os_server" dir:"/snap/pieces-os/45/os_server" type:"" opts:MS_BIND unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/share" dir:"/snap/pieces-os/45/share" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/snap" dir:"/snap/pieces-os/45/snap" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/snap.zenity-integration" dir:"/snap/pieces-os/45/snap.zenity-integration" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/tmp/.snap/snap/pieces-os/45/usr" dir:"/snap/pieces-os/45/usr" type:"" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount --make-rprivate "/tmp/.snap/snap/pieces-os/45" (error: <nil>)
logger.go:93: DEBUG: umount "/tmp/.snap/snap/pieces-os/45" UMOUNT_NOFOLLOW|MNT_DETACH (error: <nil>)
logger.go:93: DEBUG: remove "/tmp/.snap/snap/pieces-os/45" (error: <nil>)
logger.go:93: DEBUG: mount name:"/snap/pieces-os/45/gnome-platform/usr/share/libdrm" dir:"/usr/share/libdrm" type:"none" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: mount name:"/var/snap/pieces-os/45/var/cache/fontconfig" dir:"/var/cache/fontconfig" type:"none" opts:MS_BIND|MS_REC unparsed:"" (error: <nil>)
logger.go:93: DEBUG: unlocking mount namespace of snap "pieces-os"
logger.go:93: DEBUG: thawing processes of snap "pieces-os"
cannot update snap namespace: cannot use "/etc/fonts" as mount point: not a directory
snap-update-ns failed with code 1
edmundmiller commented 6 months ago

Came here for the same reason, issue is still there.

justchokingaround commented 4 months ago

same issue