summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd')
-rw-r--r--meta/recipes-core/systemd/systemd_228.bb12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_228.bb b/meta/recipes-core/systemd/systemd_228.bb
index 19b7b4218d..df8813ac42 100644
--- a/meta/recipes-core/systemd/systemd_228.bb
+++ b/meta/recipes-core/systemd/systemd_228.bb
@@ -404,6 +404,18 @@ ALTERNATIVE_TARGET[runlevel] = "${base_bindir}/systemctl"
404ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel" 404ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel"
405ALTERNATIVE_PRIORITY[runlevel] ?= "300" 405ALTERNATIVE_PRIORITY[runlevel] ?= "300"
406 406
407pkg_postinst_${PN} () {
408 sed -e '/^hosts:/s/\s*\<myhostname\>//' \
409 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \
410 -i $D${sysconfdir}/nsswitch.conf
411}
412
413pkg_prerm_${PN} () {
414 sed -e '/^hosts:/s/\s*\<myhostname\>//' \
415 -e '/^hosts:/s/\s*myhostname//' \
416 -i $D${sysconfdir}/nsswitch.conf
417}
418
407pkg_postinst_udev-hwdb () { 419pkg_postinst_udev-hwdb () {
408 if test -n "$D"; then 420 if test -n "$D"; then
409 ${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \ 421 ${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \