* [meta-cgl][ 1/3] kernel: Remove non-existing kernel option
@ 2020-09-27 9:26 kai
2020-09-27 9:26 ` [meta-cgl][ 2/3] ocfs2-tools: remove lsbinitscripts from RDEPENDS kai
2020-09-27 9:26 ` [meta-cgl][ 3/3] ucarp: add initscripts-functions as runtime dependency when using systemd kai
0 siblings, 2 replies; 3+ messages in thread
From: kai @ 2020-09-27 9:26 UTC (permalink / raw)
To: yocto
From: He Zhe <zhe.he@windriver.com>
CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE has been removed from mainline kernel
by commit be6ec88f41ba ("selinux: Remove SECURITY_SELINUX_BOOTPARAM_VALUE").
Ref:
http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto/commit/?id=be6ec88
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
meta-cgl-common/recipes-kernel/linux/files/cfg/00014-selinux.cfg | 1 -
1 file changed, 1 deletion(-)
diff --git a/meta-cgl-common/recipes-kernel/linux/files/cfg/00014-selinux.cfg b/meta-cgl-common/recipes-kernel/linux/files/cfg/00014-selinux.cfg
index 1efd63e..b10b839 100644
--- a/meta-cgl-common/recipes-kernel/linux/files/cfg/00014-selinux.cfg
+++ b/meta-cgl-common/recipes-kernel/linux/files/cfg/00014-selinux.cfg
@@ -19,7 +19,6 @@ CONFIG_REISERFS_FS_SECURITY=y
CONFIG_JFFS2_FS_SECURITY=y
CONFIG_SECURITYFS=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
-CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1
CONFIG_SECURITY_SELINUX_DISABLE=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [meta-cgl][ 2/3] ocfs2-tools: remove lsbinitscripts from RDEPENDS 2020-09-27 9:26 [meta-cgl][ 1/3] kernel: Remove non-existing kernel option kai @ 2020-09-27 9:26 ` kai 2020-09-27 9:26 ` [meta-cgl][ 3/3] ucarp: add initscripts-functions as runtime dependency when using systemd kai 1 sibling, 0 replies; 3+ messages in thread From: kai @ 2020-09-27 9:26 UTC (permalink / raw) To: yocto From: Robert Yang <liezhi.yang@windriver.com> The LSB support had been removed from oe-core by: https://git.openembedded.org/openembedded-core/commit/?id=fb06435 And it works well to start o2cb/ocfs2 services without lsbinitscripts. So drop LSB support for ocfs2-tools too. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Kai Kang <kai.kang@windriver.com> --- ...move-unneeded-lib-lsb-init-functions.patch | 32 +++++++++++++++++++ .../ocfs2-tools/ocfs2-tools_1.8.6.bb | 5 +-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools/0001-o2cb.init.sh-Remove-unneeded-lib-lsb-init-functions.patch diff --git a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools/0001-o2cb.init.sh-Remove-unneeded-lib-lsb-init-functions.patch b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools/0001-o2cb.init.sh-Remove-unneeded-lib-lsb-init-functions.patch new file mode 100644 index 0000000..5609b4b --- /dev/null +++ b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools/0001-o2cb.init.sh-Remove-unneeded-lib-lsb-init-functions.patch @@ -0,0 +1,32 @@ +From b7913a62e2d78fa98ae2c475de4cc697519181e2 Mon Sep 17 00:00:00 2001 +From: Robert Yang <liezhi.yang@windriver.com> +Date: Tue, 10 Sep 2019 19:29:16 -0700 +Subject: [PATCH] o2cb.init.sh: Remove unneeded /lib/lsb/init-functions + +The "systemctl start o2cb/ocfs2" works well when systemd (no +/etc/init.d/functions, either), so remove the unneeded line. + +Upstream-Status: Pending + +Signed-off-by: Robert Yang <liezhi.yang@windriver.com> +--- + vendor/common/o2cb.init.sh | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/vendor/common/o2cb.init.sh b/vendor/common/o2cb.init.sh +index 8b0dbf09..49eb9a4c 100755 +--- a/vendor/common/o2cb.init.sh ++++ b/vendor/common/o2cb.init.sh +@@ -25,9 +25,6 @@ then + start_daemon () { + daemon $* + } +-else +-# Let's try to use the LSB functions +-. /lib/lsb/init-functions + fi + + if [ $? != 0 ] +-- +2.21.0 + diff --git a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb index bc0551b..81e6c2e 100644 --- a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb +++ b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb @@ -19,6 +19,7 @@ SRC_URI = "git://github.com/markfasheh/ocfs2-tools \ file://o2cb.service \ file://ocfs2.service \ file://0001-Fix-build-with-glibc-2.28.patch \ + file://0001-o2cb.init.sh-Remove-unneeded-lib-lsb-init-functions.patch \ " SRCREV = "4d76ceb4aa7aaa1fd595368089e99575d708f719" S = "${WORKDIR}/git" @@ -30,11 +31,11 @@ DEPENDS = "corosync pacemaker \ e2fsprogs e2fsprogs-native \ " + # lsbinitscripts are needed to replace /etc/init.d/functions supplied by initscripts (systemv) # They are not the same code! # -RDEPENDS_${PN} = "bash coreutils net-tools module-init-tools e2fsprogs glib-2.0 \ - ${@bb.utils.contains('DISTRO_FEATURES','systemd','lsbinitscripts','',d)}" +RDEPENDS_${PN} = "bash coreutils net-tools module-init-tools e2fsprogs glib-2.0" ASNEEDED_pn-${PN} = "" PARALLEL_MAKE = "" -- 2.17.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [meta-cgl][ 3/3] ucarp: add initscripts-functions as runtime dependency when using systemd 2020-09-27 9:26 [meta-cgl][ 1/3] kernel: Remove non-existing kernel option kai 2020-09-27 9:26 ` [meta-cgl][ 2/3] ocfs2-tools: remove lsbinitscripts from RDEPENDS kai @ 2020-09-27 9:26 ` kai 1 sibling, 0 replies; 3+ messages in thread From: kai @ 2020-09-27 9:26 UTC (permalink / raw) To: yocto From: Yi Zhao <yi.zhao@windriver.com> The ucarp.service invokes script /usr/libexec/ucarp to start/stop the ucarp service. But the /etc/init.d/functions file which is required by the script is not installed by default when using systemd. Explicitly set the initscripts-functions package as the runtime dependency when using systemd. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Kai Kang <kai.kang@windriver.com> --- meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb index d17baa0..5ba236d 100644 --- a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb +++ b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb @@ -31,6 +31,7 @@ SRC_URI[sha256sum] = "f3cc77e28481fd04f62bb3d4bc03104a97dd316c80c0ed04ad7be24b54 inherit autotools gettext systemd DEPENDS = "libpcap" +RDEPENDS_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','initscripts-functions','',d)}" SYSTEMD_SERVICE_${PN} = "ucarp.service" SYSTEMD_AUTO_ENABLE = "disable" -- 2.17.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-27 9:27 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-09-27 9:26 [meta-cgl][ 1/3] kernel: Remove non-existing kernel option kai 2020-09-27 9:26 ` [meta-cgl][ 2/3] ocfs2-tools: remove lsbinitscripts from RDEPENDS kai 2020-09-27 9:26 ` [meta-cgl][ 3/3] ucarp: add initscripts-functions as runtime dependency when using systemd kai
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox