From cbda096f44796e51d83c2aa886f1a06a4eb55a12 Mon Sep 17 00:00:00 2001 From: CismonX Date: Sat, 29 Mar 2025 19:27:13 +0800 Subject: [PATCH] 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. --- .builds/alpine.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.builds/alpine.yml b/.builds/alpine.yml index f9fc300..f0aca93 100644 --- a/.builds/alpine.yml +++ b/.builds/alpine.yml @@ -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