Mount snap with rw for troubleshooting propose

Recently I faced with a strange issue which reproduces only on packed snap (it related to node puppeteer module)

For troubleshooting propose, it will be very helpful to modify some configs (which are parts of snap) but all such config placed on ro file system, like this

/var/lib/snapd/snaps/metanorma_x1.snap on /snap/metanorma/x1 type squashfs (ro,nodev,relatime,x-gdu.hide)

Is there a possibility to remount snap or pass a special flag to snap install to have rw mounted snap

You can unsquashfs the snap to a folder then snap try foldername/ which will “install” the snap directly from that folder. You can modify the contents of the folder to debug and make it work, then make those changes for real in your snapcraft yaml used to build the actual snap.

2 Likes

@popey thanks exactly what I looked for

1 Like