mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
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>
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
fuse
|
||||||
@@ -27,6 +27,7 @@ inherit meson pkgconfig ptest
|
|||||||
|
|
||||||
SRC_URI += " \
|
SRC_URI += " \
|
||||||
file://run-ptest \
|
file://run-ptest \
|
||||||
|
file://fuse3.conf \
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPENDS:${PN}-ptest += " \
|
RDEPENDS:${PN}-ptest += " \
|
||||||
@@ -78,6 +79,20 @@ FILES:fuse3-utils = "${bindir} ${base_sbindir}"
|
|||||||
DEBIAN_NOAUTONAME:fuse3-utils = "1"
|
DEBIAN_NOAUTONAME:fuse3-utils = "1"
|
||||||
DEBIAN_NOAUTONAME:${PN}-dbg = "1"
|
DEBIAN_NOAUTONAME:${PN}-dbg = "1"
|
||||||
|
|
||||||
|
SYSTEMD_SERVICE:${PN} = ""
|
||||||
|
|
||||||
do_install:append() {
|
do_install:append() {
|
||||||
rm -rf ${D}${base_prefix}/dev
|
rm -rf ${D}${base_prefix}/dev
|
||||||
|
|
||||||
|
# systemd class remove the sysv_initddir only if systemd_system_unitdir
|
||||||
|
# contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES
|
||||||
|
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then
|
||||||
|
rm -rf ${D}${sysconfdir}/init.d/
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install systemd related configuration file
|
||||||
|
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||||
|
install -d ${D}${sysconfdir}/modules-load.d
|
||||||
|
install -m 0644 ${UNPACKDIR}/fuse3.conf ${D}${sysconfdir}/modules-load.d
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user