Skip to content
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

lkl: systemd: add example udev and systemd service files #568

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

ddiss
Copy link

@ddiss ddiss commented Feb 19, 2025

[email protected]:
Mount a block device (specified via @instance) using lklfuse. The lklfuse binary is run as an unprivileged "lklfuse" user. The fuse "allow_other" mount option is used to provide access for users other than "lklfuse", and requires a "user_allow_other" setting in fuse3.conf

61-lklfuse.rules:
Detect USB block device add/remove events and start/stop the lklfuse-mount@ service. Block device ownership changed to provide unprivileged "lklfuse" user access.

@ddiss
Copy link
Author

ddiss commented Feb 19, 2025

Not sure whether these are interesting for others, but figured I'd submit them here just in case.

[email protected]:
Mount a block device (specified via @instance) using lklfuse. The
lklfuse binary is run as an unprivileged "lklfuse" user. The
fuse "allow_other" mount option is used to provide access for users
other than "lklfuse", and requires a "user_allow_other" setting in
fuse3.conf

61-lklfuse.rules:
Detect USB block device add/remove events and start/stop the
lklfuse-mount@<dev> service. Block device ownership changed to provide
unprivileged "lklfuse" user access.

Signed-off-by: David Disseldorp <[email protected]>
@ddiss ddiss force-pushed the lklfuse_udev_systemd branch from cf69999 to d95384a Compare February 19, 2025 12:11
@ddiss
Copy link
Author

ddiss commented Feb 19, 2025

v2:

  • Set fsname=$DEV and subtype=lkl.$FS FUSE mount options by default to improve visibility and unmount behaviour

Copy link
Member

@tavip tavip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think its worth having it here as an example. Thanks @ddiss !

@tavip tavip merged commit 7769847 into lkl:master Feb 20, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants