snapd icon indicating copy to clipboard operation
snapd copied to clipboard

c/snap-bootstrap/initramfs_systemd_mount: Add support for overlayfs options and allow empty what argument for tmpfs

Open sespiros opened this issue 1 year ago • 1 comments

That is for https://warthogs.atlassian.net/browse/FR-8352

sespiros avatar Jul 12 '24 14:07 sespiros

Hey @sespiros can you please link this to a Jira card if one exists.

zyga avatar Jul 15 '24 10:07 zyga

@zyga It works for me:

$ sudo systemd-mount '/tmp/lower '  --type overlay '--options=lowerdir=/tmp/lower\ ,upperdir=/tmp/upper\ ,workdir=/tmp/work\ ' /mnt/
Started unit mnt.mount for mount point: /mnt

Do we write the options in a unit somehow, I did not see?

valentindavid avatar Oct 08 '24 17:10 valentindavid

@zyga It works for me:

$ sudo systemd-mount '/tmp/lower '  --type overlay '--options=lowerdir=/tmp/lower\ ,upperdir=/tmp/upper\ ,workdir=/tmp/work\ ' /mnt/
Started unit mnt.mount for mount point: /mnt

Do we write the options in a unit somehow, I did not see?

If those are written to mount units then the trailing space escape doesn't work. I didn't check if all code paths write it to a file first.

zyga avatar Oct 09 '24 09:10 zyga