core icon indicating copy to clipboard operation
core copied to clipboard

extra-files: add udev rule for snap auto-import

Open mardy opened this issue 3 years ago • 5 comments

This file has always been shipped by snapd, but we are about to remove it from there because it causes issues on recent classic systems.

See also: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1966203

mardy avatar May 24 '22 13:05 mardy

Core22 has this: https://github.com/snapcore/core-base/pull/35 should we add something similar here too? Does udev/systemd from 16.04 even has the necessary support?

bboozzoo avatar May 27 '22 07:05 bboozzoo

LGTM, thanks! Which is the PR removing from snapd?

It will come later, after the core snap has been released. By the way, how often does that happen?

mardy avatar May 27 '22 08:05 mardy

Core22 has this: snapcore/core-base#35 should we add something similar here too? Does udev/systemd from 16.04 even has the necessary support?

No, it doesn't. In core22 that change was needed to workaround the security restrictions recently added to the udev unit file; but in previous Ubuntu distributions these restrictions are not there, so we can safely use unshare and call mount(). :-)

mardy avatar May 27 '22 08:05 mardy

Has this been opened also in snapcore/core20 and snapcore/core18? I think those will need the fix too.

valentindavid avatar May 31 '22 13:05 valentindavid

Has this been opened also in snapcore/core20 and snapcore/core18? I think those will need the fix too.

No, they already have their udev rules. Links in https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1966203/comments/13

mardy avatar May 31 '22 15:05 mardy