summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2024-05-24 10:23:50 +0800
committerArmin Kuster <akuster808@gmail.com>2024-06-02 14:57:06 -0400
commit9cc21a15e827628c45e2a75a780f912168e13f3a (patch)
treebb198a34360a7c039e4778794a32e19e28a98bfc
parent6de0ab744341ad61b0661aa28d78dc6767ce0786 (diff)
downloadmeta-openembedded-9cc21a15e827628c45e2a75a780f912168e13f3a.tar.gz
fuse3: remove sysv init script and install fuse kernel module explictly
For systemd, there is not a fuse.service since systemd provides sys-fs-fuse-connections.mount to mount the fuse control filesystem, so instead, only fuse3.conf is added to modules-load.d to load the required fuse kernel module. Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-filesystems/recipes-support/fuse/fuse3/fuse3.conf1
-rw-r--r--meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb15
2 files changed, 16 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-support/fuse/fuse3/fuse3.conf b/meta-filesystems/recipes-support/fuse/fuse3/fuse3.conf
new file mode 100644
index 0000000000..a517c488f3
--- /dev/null
+++ b/meta-filesystems/recipes-support/fuse/fuse3/fuse3.conf
@@ -0,0 +1 @@
fuse
diff --git a/meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb b/meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb
index 2b0797a6f5..b946b63ee4 100644
--- a/meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb
+++ b/meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb
@@ -14,6 +14,7 @@ LIC_FILES_CHKSUM = " \
14" 14"
15 15
16SRC_URI = "https://github.com/libfuse/libfuse/releases/download/fuse-${PV}/fuse-${PV}.tar.gz \ 16SRC_URI = "https://github.com/libfuse/libfuse/releases/download/fuse-${PV}/fuse-${PV}.tar.gz \
17 file://fuse3.conf \
17" 18"
18SRC_URI[sha256sum] = "f797055d9296b275e981f5f62d4e32e089614fc253d1ef2985851025b8a0ce87" 19SRC_URI[sha256sum] = "f797055d9296b275e981f5f62d4e32e089614fc253d1ef2985851025b8a0ce87"
19 20
@@ -79,6 +80,20 @@ FILES:fuse3-utils = "${bindir} ${base_sbindir}"
79DEBIAN_NOAUTONAME:fuse3-utils = "1" 80DEBIAN_NOAUTONAME:fuse3-utils = "1"
80DEBIAN_NOAUTONAME:${PN}-dbg = "1" 81DEBIAN_NOAUTONAME:${PN}-dbg = "1"
81 82
83SYSTEMD_SERVICE:${PN} = ""
84
82do_install:append() { 85do_install:append() {
83 rm -rf ${D}${base_prefix}/dev 86 rm -rf ${D}${base_prefix}/dev
87
88 # systemd class remove the sysv_initddir only if systemd_system_unitdir
89 # contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES
90 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then
91 rm -rf ${D}${sysconfdir}/init.d/
92 fi
93
94 # Install systemd related configuration file
95 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
96 install -d ${D}${sysconfdir}/modules-load.d
97 install -m 0644 ${WORKDIR}/fuse3.conf ${D}${sysconfdir}/modules-load.d
98 fi
84} 99}