ci: setup FUSE on Alpine build

Unlike distros using systemd, FUSE is not enabled by default on Alpine.

To setup FUSE manually:
1. modprobe fuse
2. mount -t fusectl fusectl /sys/fs/fuse/connections
3. chmod 666 /dev/fuse

Normal users may prefer using OpenRC services to automate these steps,
which is what we do in this patch.

Also install the umount program from util-linux, since the busybox one
does not support unprivileged dismount for FUSE.
This commit is contained in:
CismonX 2025-03-29 19:27:13 +08:00
parent f20cd2cf74
commit cbda096f44
No known key found for this signature in database
GPG key ID: 3094873E29A482FB

View file

@ -15,8 +15,8 @@ packages: [
# lib
fuse3-dev, libseccomp-dev, sqlite-dev, jansson-dev, nettle-dev,
readline-dev, tcl-dev, uriparser-dev, xxhash-dev,
# for fusermount3(1)
fuse3,
# for managing FUSE mounts
busybox-mdev-openrc, fuse-openrc, fuse3, umount,
]
sources:
- https://git.sr.ht/~cismonx/bookmarkfs
@ -43,6 +43,8 @@ tasks:
pdpmake
pdpmake info
- test: |
sudo rc-service fuse start
sudo rc-service mdev start
cd bookmarkfs
pdpmake check