-
Notifications
You must be signed in to change notification settings - Fork 37
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
snapcraft/commands/daemon.start: always remount /bin/kmod #263
Conversation
Signed-off-by: Simon Deziel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does LXD also need to umount this on LXD stop?
@simondeziel I had a quick search in lxd-pkg-snap for /bin/kmod and noticed there are some hardcoded references to "core22", given we are planning to change to core24 soon, I suspect this may become an issue. Please could you see if there is a way to make that dynamic somehow to refer to the correct core? |
@simondeziel ah looks like you had the same though as me here #262 thanks! |
|
If daemon.stop is called during |
While https://github.com/canonical/lxd-pkg-snap/blob/latest-edge/snapcraft/commands/daemon.stop#L32-L42:
It is not invoked by either This is probably fine because reloads have a dedicated script ( |
Well thats odd that There are clearly differences though as there is this open snapd bug https://bugs.launchpad.net/snapd/+bug/2028141 |
Did you miss the |
i did :) |
Upon update, the
daemon.start
would keep any existing mountbind of/bin/kmod
rather than remount a fresh one. This lead to such situation:Always remounting that script should avoid holding onto old snap data.