[oe-commits] Koen Kooi : systemd: add u-a entries for reboot, halt and friends
git version control
git at git.openembedded.org
Sat May 28 16:14:39 UTC 2011
Module: meta-openembedded.git
Branch: master
Commit: 73ee0542d93ed095233f909184b79e0c7184a38a
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=73ee0542d93ed095233f909184b79e0c7184a38a
Author: Koen Kooi <koen at dominion.thruhere.net>
Date: Sat May 28 14:30:45 2011 +0200
systemd: add u-a entries for reboot, halt and friends
Also drag in full modprobe.
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
---
meta-oe/recipes-core/systemd/systemd_git.bb | 25 ++++++++++++++++++-------
1 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb
index 9f92f8a..d1f4cbe 100644
--- a/meta-oe/recipes-core/systemd/systemd_git.bb
+++ b/meta-oe/recipes-core/systemd/systemd_git.bb
@@ -15,7 +15,7 @@ inherit gitpkgv
PKGV = "v${GITPKGVTAG}"
PV = "git"
-PR = "r1"
+PR = "r2"
inherit autotools vala update-alternatives
@@ -88,13 +88,24 @@ FILES_${PN}-dbg += "${base_libdir}/systemd/.debug ${base_libdir}/systemd/*/.debu
RDEPENDS_${PN} += "dbus-systemd udev-systemd"
# kbd -> loadkeys,setfont
-RRECOMMENDS_${PN} += "kbd kbd-consolefonts ${PN}-serialgetty"
+# systemd calls 'modprobe -sab --', which busybox doesn't support due to lack
+# of blacklist support, so use proper modprobe from module-init-tools
+RRECOMMENDS_${PN} += "kbd kbd-consolefonts ${PN}-serialgetty module-init-tools"
+
+# TODO:
+# u-a for runlevel and telinit
pkg_postinst_${PN} () {
- # can't do this offline
- if [ "x$D" != "x" ]; then
- exit 1
- fi
- grep "^lock:" /etc/group > /dev/null || addgroup lock
+# can't do this offline
+if [ "x$D" != "x" ]; then
+ exit 1
+fi
+grep "^lock:" /etc/group > /dev/null || addgroup lock
+
+update-alternatives --install ${base_sbindir}/halt halt ${base_bindir}/systemctl 300
+update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/systemctl 300
+update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300
+update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300
+
}
More information about the Openembedded-commits
mailing list