Skip to contentSkip to conversation

README: use simpler syntax to enable systemd

PATCH In review [email protected] 1 participant 3 messages Jun 21, 2024 – Jul 23, 2024 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 README: use simpler syntax to enable systemd

From: Etienne Cordonnier <[email protected]>

The variable INIT_MANAGER was added in yocto version Zeus / 3.0 and makes the selection of systemd easier. See https://git.yoctoproject.org/poky/commit/?id=7508711b3835cc7890d46fda1b4a1c3da196ec9a for details.

---
 README | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
README +1 -4
index 67708f7..ce91cc1 100644
@@ -69,10 +69,7 @@ By default selinux enabled images coming up with "sysvinit" as init manager,
 we can use "systemd" as an init manager using below changes to local.conf
 
 * enable systemd as init manager changes to local.conf
-DISTRO_FEATURES:remove = " sysvinit"
-DISTRO_FEATURES:append = " systemd"
-VIRTUAL-RUNTIME_init_manager = "systemd"
-DISTRO_FEATURES_BACKFILL_CONSIDERED = ""
+INIT_MANAGER = "systemd"
 
 
 Enable labeling on first boot
Signature · 1 line
2.36.1.vfs.0.0
#1 lore raw

PATCH 2/2 README: remove outdated section

From: Etienne Cordonnier <[email protected]>

After commit
https://git.yoctoproject.org/meta-selinux/commit/?id=9e986d7d794f044464e1af914ddbcd57d8f1c2e9 , it is not possible any more to choose a different version os the refpolicy, and only the git version is maintained.

---
 README | 16 ----------------
 1 file changed, 16 deletions(-)
README +0 -16
index ce91cc1..ae011f3 100644
@@ -47,22 +47,6 @@ to be tailored for your environment.
 e.g. PREFERRED_PROVIDER_virtual/refpolicy ?= "refpolicy-mls"
 
 
-Using different versions of refpolicy
--------------------------------------
-To prepare selinux enabled images using different ver. of refpolicy,
-we can choose supported releases of refpolicy
-refer to available versions under recipes-security/refpolicy
-
-We can use the refpolicy directly from git repository instead of release tarballs.
-By default refpolicy from git builds head commit of master branch, we can update
-SRCREV for refpolicy and refpolicy-contrib as appropriate at refpolicy_git.inc
-to check refpolicy as per required commits.
-
-* enable the preferred refpolicy-minimum:
-PREFERRED_VERSION_refpolicy-minimum = "2.20151208"
-PREFERRED_VERSION_refpolicy = "2.20151208"
-
-
 Using different init manager
 ----------------------------
 By default selinux enabled images coming up with "sysvinit" as init manager,
Signature · 1 line
2.36.1.vfs.0.0

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Re: [yocto-patches] [meta-selinux][PATCH 2/2] README: remove outdated section

Hi,
what is the status of this patch?

Thanks,
Étienne

Quoted 65 lines · Etienne Cordonnier via lists.yoctoproject.org

From: Etienne Cordonnier <[email protected]>

After commit

https://urldefense.proofpoint.com/v2/url?u=https-3A__git.yoctoproject.org_meta-2Dselinux_commit_-3Fid-3D9e986d7d794f044464e1af914ddbcd57d8f1c2e9&d=DwIDAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=ghRUj7zLxL9M5QiO1MsNgP7HUMjXOJR3DrnPtDbTg9EpKZww-5ivSdyDUgg6QtAw&s=9fSbog0BXi2LxT5R5eu74CVFm4ccFNsm8l91UY99Uj4&e=
,
it is not possible any more to choose a different version os the refpolicy, and
only the git version is maintained.

---
 README | 16 ----------------
 1 file changed, 16 deletions(-)
README +0 -7
index ce91cc1..ae011f3 100644
@@ -47,22 +47,6 @@ to be tailored for your environment.
 e.g. PREFERRED_PROVIDER_virtual/refpolicy ?= "refpolicy-mls"
 
 
-Using different versions of refpolicy
--------------------------------------
-To prepare selinux enabled images using different ver. of refpolicy,
-we can choose supported releases of refpolicy
-refer to available versions under recipes-security/refpolicy
-
-We can use the refpolicy directly from git repository instead of release

tarballs.
-By default refpolicy from git builds head commit of master branch, we can update
-SRCREV for refpolicy and refpolicy-contrib as appropriate at refpolicy_git.inc

README +0 -7
-to check refpolicy as per required commits.
-
-* enable the preferred refpolicy-minimum:
-PREFERRED_VERSION_refpolicy-minimum = "2.20151208"
-PREFERRED_VERSION_refpolicy = "2.20151208"
-
-
 Using different init manager
 ----------------------------
 By default selinux enabled images coming up with "sysvinit" as init

manager,
--
2.36.1.vfs.0.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#363):
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_g_yocto-2Dpatches_message_363&d=DwIDAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=ghRUj7zLxL9M5QiO1MsNgP7HUMjXOJR3DrnPtDbTg9EpKZww-5ivSdyDUgg6QtAw&s=fmzST4Tt2EW8c27U7m6lI-asg1ezZXJ_cegjtgo6jX0&e=
Mute This Topic:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_mt_106797251_7048771&d=DwIDAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=ghRUj7zLxL9M5QiO1MsNgP7HUMjXOJR3DrnPtDbTg9EpKZww-5ivSdyDUgg6QtAw&s=eeClF7tFzqtJ_OpkpWuYQFP0WhwFycFy0M_7Y2cJCqw&e=
Group Owner: [email protected] Unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_g_yocto-2Dpatches_leave_13184993_7048771_1814342232_xyzzy&d=DwIDAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=ghRUj7zLxL9M5QiO1MsNgP7HUMjXOJR3DrnPtDbTg9EpKZww-5ivSdyDUgg6QtAw&s=luJTf111dZRNsoW2B_ZV9sgVlo9GMV5U8KaMU1oYMlI&e=
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-