diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-28 14:30:45 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-28 16:42:55 +0200 |
commit | 73ee0542d93ed095233f909184b79e0c7184a38a (patch) | |
tree | c2764cf4bef08a9870879ec86de044632629bf14 | |
parent | 086a042fb75d79902c84d81dc1e3caa5dd995c16 (diff) | |
download | meta-openembedded-73ee0542d93ed095233f909184b79e0c7184a38a.tar.gz |
systemd: add u-a entries for reboot, halt and friends
Also drag in full modprobe.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r-- | 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 9f92f8ace..d1f4cbed9 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 | |||
15 | PKGV = "v${GITPKGVTAG}" | 15 | PKGV = "v${GITPKGVTAG}" |
16 | 16 | ||
17 | PV = "git" | 17 | PV = "git" |
18 | PR = "r1" | 18 | PR = "r2" |
19 | 19 | ||
20 | inherit autotools vala update-alternatives | 20 | inherit autotools vala update-alternatives |
21 | 21 | ||
@@ -88,13 +88,24 @@ FILES_${PN}-dbg += "${base_libdir}/systemd/.debug ${base_libdir}/systemd/*/.debu | |||
88 | RDEPENDS_${PN} += "dbus-systemd udev-systemd" | 88 | RDEPENDS_${PN} += "dbus-systemd udev-systemd" |
89 | 89 | ||
90 | # kbd -> loadkeys,setfont | 90 | # kbd -> loadkeys,setfont |
91 | RRECOMMENDS_${PN} += "kbd kbd-consolefonts ${PN}-serialgetty" | 91 | # systemd calls 'modprobe -sab --', which busybox doesn't support due to lack |
92 | # of blacklist support, so use proper modprobe from module-init-tools | ||
93 | RRECOMMENDS_${PN} += "kbd kbd-consolefonts ${PN}-serialgetty module-init-tools" | ||
94 | |||
95 | # TODO: | ||
96 | # u-a for runlevel and telinit | ||
92 | 97 | ||
93 | pkg_postinst_${PN} () { | 98 | pkg_postinst_${PN} () { |
94 | # can't do this offline | 99 | # can't do this offline |
95 | if [ "x$D" != "x" ]; then | 100 | if [ "x$D" != "x" ]; then |
96 | exit 1 | 101 | exit 1 |
97 | fi | 102 | fi |
98 | grep "^lock:" /etc/group > /dev/null || addgroup lock | 103 | grep "^lock:" /etc/group > /dev/null || addgroup lock |
104 | |||
105 | update-alternatives --install ${base_sbindir}/halt halt ${base_bindir}/systemctl 300 | ||
106 | update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/systemctl 300 | ||
107 | update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300 | ||
108 | update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300 | ||
109 | |||
99 | } | 110 | } |
100 | 111 | ||