fuse3: remove sysv init script and install fuse kernel module explictly
PATCH 1/1 fuse3: remove sysv init script and install fuse kernel module explictly
From: Changqing Li <[email protected]>
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 fuse.conf is added to modules-load.d to load the required fuse kernel module.
--- .../recipes-support/fuse/fuse3_3.16.2.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb +15 -0
@@ -28,6 +28,7 @@ inherit meson pkgconfig ptest SRC_URI += " \ file://run-ptest \ + file://fuse.conf \ " RDEPENDS:${PN}-ptest += " \
@@ -79,6 +80,20 @@ FILES:fuse3-utils = "${bindir} ${base_sbindir}" DEBIAN_NOAUTONAME:fuse3-utils = "1" DEBIAN_NOAUTONAME:${PN}-dbg = "1" +SYSTEMD_SERVICE:${PN} = "" + do_install:append() { 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 ${WORKDIR}/fuse.conf ${D}${sysconfdir}/modules-load.d + fi }
Signature · 1 line
2.25.1
Quoted 18 lines · Changqing Li via lists.openembedded.org
From: Changqing Li <[email protected]>
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 fuse.conf is added to modules-load.d to load the required fuse kernel module.
Signed-off-by Changqing Li <[email protected]>--- .../recipes-support/fuse/fuse3_3.16.2.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+)meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb +0
-0
meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb inherit meson pkgconfig ptest · line 31
Quoted 4 lines
meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb +1
-0@@ -28,6 +28,7 @@ inherit meson pkgconfig ptest SRC_URI += " \ file://run-ptest \ + file://fuse.conf \
Who provides this file ? I don’t see it as part of patch
Quoted 45 lines
meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb +4
-0" RDEPENDS:${PN}-ptest += " \@@ -79,6 +80,20 @@ FILES:fuse3-utils = "${bindir} ${base_sbindir}" DEBIAN_NOAUTONAME:fuse3-utils = "1" DEBIAN_NOAUTONAME:${PN}-dbg = "1" +SYSTEMD_SERVICE:${PN} = "" + do_install:append() { 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 inDISTRO_FEATURES
+ if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false',
'true', d)}; thenmeta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb +5
-0+ rm -rf ${D}${sysconfdir}/init.d/ + fi + + # Install systemd related configuration file + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true','false', d)}; then
meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb +2
-0+ install -d ${D}${sysconfdir}/modules-load.d + install -m 0644 ${WORKDIR}/fuse.conf${D}${sysconfdir}/modules-load.d
+ fi
}
--
2.25.1-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#110121):
https://lists.openembedded.org/g/openembedded-devel/message/110121
Mute This Topic: https://lists.openembedded.org/mt/105706495/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 38 lines · Khem Raj
**
*CAUTION: This email comes from a non Wind River email account!*
Do not click links or open attachments unless you recognize the sender and know the content is safe.On Wed, Apr 24, 2024 at 10:09 AM Changqing Li via lists.openembedded.org <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!aSee_7-ICSMQYIbOvW2JOzFIlLuJvdJNndae-DCyAUG4F8K4bVPfZESt9NY3Wxw_Fbzji7i_whkywcFNl8Lch7ilmQ$> <changqing.li <https://urldefense.com/v3/__http://changqing.li__;!!AjveYdw8EvQ!aSee_7-ICSMQYIbOvW2JOzFIlLuJvdJNndae-DCyAUG4F8K4bVPfZESt9NY3Wxw_Fbzji7i_whkywcFNl8IR2yqQFQ$>[email protected]> wrote:
From: Changqing Li <[email protected]> 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 fuse.conf is added to modules-load.d to load the required fuse kernel module. Signed-off-by: Changqing Li <[email protected]> --- .../recipes-support/fuse/fuse3_3.16.2.bb <https://urldefense.com/v3/__http://fuse3_3.16.2.bb__;!!AjveYdw8EvQ!aSee_7-ICSMQYIbOvW2JOzFIlLuJvdJNndae-DCyAUG4F8K4bVPfZESt9NY3Wxw_Fbzji7i_whkywcFNl8K4AuVerw$> | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb <https://urldefense.com/v3/__http://fuse3_3.16.2.bb__;!!AjveYdw8EvQ!aSee_7-ICSMQYIbOvW2JOzFIlLuJvdJNndae-DCyAUG4F8K4bVPfZESt9NY3Wxw_Fbzji7i_whkywcFNl8K4AuVerw$> b/meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb <https://urldefense.com/v3/__http://fuse3_3.16.2.bb__;!!AjveYdw8EvQ!aSee_7-ICSMQYIbOvW2JOzFIlLuJvdJNndae-DCyAUG4F8K4bVPfZESt9NY3Wxw_Fbzji7i_whkywcFNl8K4AuVerw$> index 2b0797a6f..8c5c51360 100644 --- a/meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb <https://urldefense.com/v3/__http://fuse3_3.16.2.bb__;!!AjveYdw8EvQ!aSee_7-ICSMQYIbOvW2JOzFIlLuJvdJNndae-DCyAUG4F8K4bVPfZESt9NY3Wxw_Fbzji7i_whkywcFNl8K4AuVerw$> +++ b/meta-filesystems/recipes-support/fuse/fuse3_3.16.2.bb <https://urldefense.com/v3/__http://fuse3_3.16.2.bb__;!!AjveYdw8EvQ!aSee_7-ICSMQYIbOvW2JOzFIlLuJvdJNndae-DCyAUG4F8K4bVPfZESt9NY3Wxw_Fbzji7i_whkywcFNl8K4AuVerw$> @@ -28,6 +28,7 @@ inherit meson pkgconfig ptest SRC_URI += " \ file://run-ptest \ + file://fuse.conf \
Quoted 1 line
Who provides this file ? I don’t see it as part of patch
There is already a fuse.conf under files, it is used by fuse_2.9.9.bb.
https://git.openembedded.org/meta-openembedded/tree/meta-filesystems/recipes-support/fuse/files/
Regards
changqing
Quoted 50 lines
"
RDEPENDS:${PN}-ptest += " \
@@ -79,6 +80,20 @@ FILES:fuse3-utils = "${bindir} ${base_sbindir}"
DEBIAN_NOAUTONAME:fuse3-utils = "1"
DEBIAN_NOAUTONAME:${PN}-dbg = "1"
+SYSTEMD_SERVICE:${PN} = ""
+
do_install:append() {
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 ${WORKDIR}/fuse.conf
${D}${sysconfdir}/modules-load.d
+ fi
}
--
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110121):
https://lists.openembedded.org/g/openembedded-devel/message/110121
<https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/message/110121__;!!AjveYdw8EvQ!aSee_7-ICSMQYIbOvW2JOzFIlLuJvdJNndae-DCyAUG4F8K4bVPfZESt9NY3Wxw_Fbzji7i_whkywcFNl8IjKKEj_w$>
Mute This Topic:
https://lists.openembedded.org/mt/105706495/1997914
<https://urldefense.com/v3/__https://lists.openembedded.org/mt/105706495/1997914__;!!AjveYdw8EvQ!aSee_7-ICSMQYIbOvW2JOzFIlLuJvdJNndae-DCyAUG4F8K4bVPfZESt9NY3Wxw_Fbzji7i_whkywcFNl8JO5CC2Fw$>
Group Owner: [email protected]
<mailto:openembedded-devel%[email protected]>
Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub
<https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/unsub__;!!AjveYdw8EvQ!aSee_7-ICSMQYIbOvW2JOzFIlLuJvdJNndae-DCyAUG4F8K4bVPfZESt9NY3Wxw_Fbzji7i_whkywcFNl8LCNsyZIw$>
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-