summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2024-05-23 13:56:08 +0800
committerKhem Raj <raj.khem@gmail.com>2024-05-23 16:17:12 -0700
commitf397be4a72e4dc27efa11e1812c7c5115f94f87f (patch)
tree399fcd2e02262ddf31872d6385159bec54013174
parent14f9af8522b0e488d8aac178437a0ffce29b173e (diff)
downloadmeta-openembedded-f397be4a72e4dc27efa11e1812c7c5115f94f87f.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: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/fuse/fuse3/fuse3.conf1
-rw-r--r--meta-oe/recipes-support/fuse/fuse3_3.16.2.bb15
2 files changed, 16 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/fuse/fuse3/fuse3.conf b/meta-oe/recipes-support/fuse/fuse3/fuse3.conf
new file mode 100644
index 0000000000..a517c488f3
--- /dev/null
+++ b/meta-oe/recipes-support/fuse/fuse3/fuse3.conf
@@ -0,0 +1 @@
fuse
diff --git a/meta-oe/recipes-support/fuse/fuse3_3.16.2.bb b/meta-oe/recipes-support/fuse/fuse3_3.16.2.bb
index 307544bf3d..47b070557d 100644
--- a/meta-oe/recipes-support/fuse/fuse3_3.16.2.bb
+++ b/meta-oe/recipes-support/fuse/fuse3_3.16.2.bb
@@ -27,6 +27,7 @@ inherit meson pkgconfig ptest
27 27
28SRC_URI += " \ 28SRC_URI += " \
29 file://run-ptest \ 29 file://run-ptest \
30 file://fuse3.conf \
30" 31"
31 32
32RDEPENDS:${PN}-ptest += " \ 33RDEPENDS:${PN}-ptest += " \
@@ -78,6 +79,20 @@ FILES:fuse3-utils = "${bindir} ${base_sbindir}"
78DEBIAN_NOAUTONAME:fuse3-utils = "1" 79DEBIAN_NOAUTONAME:fuse3-utils = "1"
79DEBIAN_NOAUTONAME:${PN}-dbg = "1" 80DEBIAN_NOAUTONAME:${PN}-dbg = "1"
80 81
82SYSTEMD_SERVICE:${PN} = ""
83
81do_install:append() { 84do_install:append() {
82 rm -rf ${D}${base_prefix}/dev 85 rm -rf ${D}${base_prefix}/dev
86
87 # systemd class remove the sysv_initddir only if systemd_system_unitdir
88 # contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES
89 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then
90 rm -rf ${D}${sysconfdir}/init.d/
91 fi
92
93 # Install systemd related configuration file
94 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
95 install -d ${D}${sysconfdir}/modules-load.d
96 install -m 0644 ${UNPACKDIR}/fuse3.conf ${D}${sysconfdir}/modules-load.d
97 fi
83} 98}