diff options
author | Changqing Li <changqing.li@windriver.com> | 2024-05-24 10:23:50 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2024-06-02 14:57:06 -0400 |
commit | 9cc21a15e827628c45e2a75a780f912168e13f3a (patch) | |
tree | bb198a34360a7c039e4778794a32e19e28a98bfc | |
parent | 6de0ab744341ad61b0661aa28d78dc6767ce0786 (diff) | |
download | meta-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.conf | 1 | ||||
-rw-r--r-- | meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb | 15 |
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 | ||
16 | SRC_URI = "https://github.com/libfuse/libfuse/releases/download/fuse-${PV}/fuse-${PV}.tar.gz \ | 16 | SRC_URI = "https://github.com/libfuse/libfuse/releases/download/fuse-${PV}/fuse-${PV}.tar.gz \ |
17 | file://fuse3.conf \ | ||
17 | " | 18 | " |
18 | SRC_URI[sha256sum] = "f797055d9296b275e981f5f62d4e32e089614fc253d1ef2985851025b8a0ce87" | 19 | SRC_URI[sha256sum] = "f797055d9296b275e981f5f62d4e32e089614fc253d1ef2985851025b8a0ce87" |
19 | 20 | ||
@@ -79,6 +80,20 @@ FILES:fuse3-utils = "${bindir} ${base_sbindir}" | |||
79 | DEBIAN_NOAUTONAME:fuse3-utils = "1" | 80 | DEBIAN_NOAUTONAME:fuse3-utils = "1" |
80 | DEBIAN_NOAUTONAME:${PN}-dbg = "1" | 81 | DEBIAN_NOAUTONAME:${PN}-dbg = "1" |
81 | 82 | ||
83 | SYSTEMD_SERVICE:${PN} = "" | ||
84 | |||
82 | do_install:append() { | 85 | do_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 | } |