Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
drmikecrowe opened this issue Feb 17, 2024 · 4 comments
Open

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

drmikecrowe opened this issue Feb 17, 2024 · 4 comments

Comments

@drmikecrowe
Copy link

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
Copy link

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

@justchokingaround
Copy link

same issue

@InfiniteCoder01
Copy link

Same

@InfiniteCoder01
Copy link

InfiniteCoder01 commented Jan 19, 2025

Pieces OS seems to work if you remove fonts-related mounts:

  • Download a snap: snap download pieces-os
  • Unpack the squashfs: nix shell nixpkgs#squashfsTools -c unsquashfs pieces-os_*.snap
  • Open squashfs-root/meta/snap.yaml and comment out /etc/fonts, /usr/share/fonts and /var/cache/fontconfig binds
  • Repack the snap using nix shell nixpkgs#squashfsTools -c mksquashfs squashfs-root pieces-os.snap
  • Install the snap using sudo snap install --dangerous pieces-os.snap
  • Run using sudo snap run pieces-os (sudo necessary)
    Same steps can be applied for pieces-for-developers app, but make sure to remove squashfs-root directory first
    Also tried using browser extension. It seems to see pieces-os, but it fails to start, not sure why
    EDIT: Browser extension started working after I launched pieces-for-developers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants