mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
systemd: fix postinst so u-a can run offline
otherwise we don't get an /sbin/init.... Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -15,7 +15,7 @@ inherit gitpkgv
|
|||||||
PKGV = "v${GITPKGVTAG}"
|
PKGV = "v${GITPKGVTAG}"
|
||||||
|
|
||||||
PV = "git"
|
PV = "git"
|
||||||
PR = "r3"
|
PR = "r4"
|
||||||
|
|
||||||
inherit autotools vala update-alternatives
|
inherit autotools vala update-alternatives
|
||||||
|
|
||||||
@@ -101,11 +101,12 @@ RRECOMMENDS_${PN} += "kbd kbd-consolefonts \
|
|||||||
# u-a for runlevel and telinit
|
# u-a for runlevel and telinit
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
# can't do this offline
|
# can't do this offline, but we need the u-a bits
|
||||||
if [ "x$D" != "x" ]; then
|
if [ "x$D" != "x" ]; then
|
||||||
exit 1
|
echo "can't do addgroup offline"
|
||||||
|
else
|
||||||
|
grep "^lock:" /etc/group > /dev/null || addgroup lock
|
||||||
fi
|
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}/halt halt ${base_bindir}/systemctl 300
|
||||||
update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/systemctl 300
|
update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/systemctl 300
|
||||||
|
|||||||
Reference in New Issue
Block a user