Patch: Krogoth systemd network service fails to start on boot
Hey,
on our krogoth build the systemd network service does not start, and it seems to be because of missing users, which has already been fixed on master. I've cherry-picked the two patches that fixed the problem for us. Note that they are not written by me, but by other people on this list. I hope they can be applied to krogoth.
Regards
Kristian Amlie
From 5da020f1b00c5ed003400baa3905843824db0a60 Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Tue, 17 May 2016 21:40:21 -0700
Subject: [PATCH 1/2] systemd: Create missing sysusers offline
Some system users which are needed by systemd components were missing create these users knobbed with relevant packageconfig
(From OE-Core rev: d18957925c6c073b7194e3a233efea24e436f74e)
--- meta/recipes-core/systemd/systemd_229.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
meta/recipes-core/systemd/systemd_229.bb +7 -1
@@ -319,10 +319,16 @@ PACKAGES =+ "\ SYSTEMD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt', '${PN}-binfmt', '', d)}" SYSTEMD_SERVICE_${PN}-binfmt = "systemd-binfmt.service" -USERADD_PACKAGES = "${PN}" +USERADD_PACKAGES = "${PN} ${PN}-extra-utils" USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '--system -d / -M --shell /bin/nologin systemd-journal-gateway;', '', d)}" +USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '--system -d / -M --shell /bin/nologin systemd-journal-remote;', '', d)}" +USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'journal-upload', '--system -d / -M --shell /bin/nologin systemd-journal-upload;', '', d)}" USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'timesyncd', '--system -d / -M --shell /bin/nologin systemd-timesync;', '', d)}" +USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'networkd', '--system -d / -M --shell /bin/nologin systemd-network;', '', d)}" +USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'coredump', '--system -d / -M --shell /bin/nologin systemd-coredump;', '', d)}" +USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'resolved', '--system -d / -M --shell /bin/nologin systemd-resolve;', '', d)}" GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal" +USERADD_PARAM_${PN}-extra-utils += "--system -d / -M --shell /bin/nologin systemd-bus-proxy;" FILES_${PN}-analyze = "${bindir}/systemd-analyze"
Signature · 1 line
2.7.4
From 27f74da024b459e0f8f02184f3e253dc58305cba Mon Sep 17 00:00:00 2001
From: Stephano Cetola <[email protected]>
Date: Tue, 31 May 2016 13:59:54 -0700
Subject: [PATCH 2/2] systemd: allow add users as a rootfs postprocess cmd
Adding all the users / groups to systemd is only available for readonly file systems. This change allows users to add them to read / write file systems as well by specifying:
ROOTFS_POSTPROCESS_COMMAND += "systemd_create_users"
Also, add "--shell /sbin/nologin" to each user's add params.
[ YOCTO #9497 ]
(From OE-Core rev: 98a4c642444a524f547f5d978a28814d20c12354)
--- meta/classes/rootfs-postcommands.bbclass | 43 +++++++++++++++----------------- 1 file changed, 20 insertions(+), 23 deletions(-)
meta/classes/rootfs-postcommands.bbclass +20 -23
61 lines not on this page · raw message
Signature · 1 line
2.7.4
thats fine. Post the patches using git-format patch and have [krogoth] in the subject header
Quoted 17 lines · Kristian Amlie
Hey,
on our krogoth build the systemd network service does not start, and it seems to be because of missing users, which has already been fixed on master. I've cherry-picked the two patches that fixed the problem for us. Note that they are not written by me, but by other people on this list. I hope they can be applied to krogoth.
Regards
Kristian Amlie <0001-systemd-Create-missing-sysusers-offline.patch><0002-systemd-allow-add-users-as-a-rootfs-postprocess-cmd.patch>--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 1 line · Khem Raj
thats fine. Post the patches using git-format patch and have [krogoth] in the subject header
Thanks, reposted!
Regards
Kristian Amlie