Folder in writable-paths for UC20

Hi,

A quick question for the folder /etc/update-motd.d, I found this folder is writable in core snap, https://github.com/snapcore/core/blob/9c67e4700e83de6750de8f9e8dafe4bb4d865ae4/extra-files/etc/system-image/writable-paths#L118, but not in other core snaps, for example, core18/core20. How can I make this folder writable for UC20?

Thanks :slight_smile:

Can we cherry pick this commit to core20, https://github.com/snapcore/core-build/commit/e14256d52a9e46df188c540b4d90849a05129b40 by @ogra ? :slight_smile:

Feel free to submit a PR adding that to core18 and core20

1 Like

Thanks @ijohnson, just put up 2 PRs for review, thanks :+1:

2 Likes

I just saw the new version being released to edge and beta, when can we release them to stable channel? Thanks :slight_smile:

a quick question, why do we need 2 PRs for core18 and core20? I just saw core18 got updated with this PR on stable channel, but core20 doesn’t. If I build an image with core18 and core20 (both stable channel), will the folder /etc/update-motd.d be writable?

Thanks :slight_smile:

The host folder being writable or not depends on the “boot base snap” - if your device/image is an Ubuntu Core 20 image, then it’s “boot base snap” is core20 and in which case you need to wait for the fix to show up in core20. If the fix is in core18, then only Ubuntu Core 18 images will get the fix.

I don’t know the timeframe for when fixes merged to core18/core20 get released, but it should happen soonish, as IIRC it is automated

1 Like