mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
systemd: bump SRCREV and fix postinst
The u-a class gets in the way of the addgroup, so do things manually Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -17,9 +17,9 @@ PKGV = "v${GITPKGVTAG}"
|
|||||||
PV = "git"
|
PV = "git"
|
||||||
PR = "r4"
|
PR = "r4"
|
||||||
|
|
||||||
inherit autotools vala update-alternatives
|
inherit autotools vala
|
||||||
|
|
||||||
SRCREV = "9a66640832d103f906c2ef609a1d19d43fc542f6"
|
SRCREV = "78e39b43b89c6bf9ce401d6030939a004a23c850"
|
||||||
|
|
||||||
SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \
|
SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \
|
||||||
file://execute.patch \
|
file://execute.patch \
|
||||||
@@ -54,11 +54,6 @@ do_install_append() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
ALTERNATIVE_NAME = "init"
|
|
||||||
ALTERNATIVE_LINK = "${base_sbindir}/init"
|
|
||||||
ALTERNATIVE_PATH = "${base_bindir}/systemd"
|
|
||||||
ALTERNATIVE_PRIORITY = "80"
|
|
||||||
|
|
||||||
PACKAGES =+ "${PN}-gui ${PN}-serialgetty"
|
PACKAGES =+ "${PN}-gui ${PN}-serialgetty"
|
||||||
|
|
||||||
FILES_${PN}-gui = "${bindir}/systemadm"
|
FILES_${PN}-gui = "${bindir}/systemadm"
|
||||||
@@ -101,17 +96,17 @@ 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, but we need the u-a bits
|
update-alternatives --install ${base_sbindir}/init init ${base_bindir}/systemd 300
|
||||||
if [ "x$D" != "x" ]; then
|
|
||||||
echo "can't do addgroup offline"
|
|
||||||
else
|
|
||||||
grep "^lock:" /etc/group > /dev/null || addgroup lock
|
|
||||||
fi
|
|
||||||
|
|
||||||
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
|
||||||
update-alternatives --install ${base_sbindir}/shutdown shutdown ${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
|
update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300
|
||||||
|
|
||||||
|
# can't do this offline, but we need the u-a bits above
|
||||||
|
if [ "x$D" != "x" ]; then
|
||||||
|
echo "can't do addgroup offline" ; exit 1
|
||||||
|
else
|
||||||
|
grep "^lock:" /etc/group > /dev/null || addgroup lock
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user