summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/systemd/systemd_254.4.bb30
1 files changed, 23 insertions, 7 deletions
diff --git a/meta/recipes-core/systemd/systemd_254.4.bb b/meta/recipes-core/systemd/systemd_254.4.bb
index 77724eb822..285ca92e68 100644
--- a/meta/recipes-core/systemd/systemd_254.4.bb
+++ b/meta/recipes-core/systemd/systemd_254.4.bb
@@ -178,7 +178,7 @@ PACKAGECONFIG[microhttpd] = "-Dmicrohttpd=true,-Dmicrohttpd=false,libmicrohttpd"
178PACKAGECONFIG[myhostname] = "-Dnss-myhostname=true,-Dnss-myhostname=false,,libnss-myhostname" 178PACKAGECONFIG[myhostname] = "-Dnss-myhostname=true,-Dnss-myhostname=false,,libnss-myhostname"
179PACKAGECONFIG[networkd] = "-Dnetworkd=true,-Dnetworkd=false" 179PACKAGECONFIG[networkd] = "-Dnetworkd=true,-Dnetworkd=false"
180PACKAGECONFIG[no-dns-fallback] = "-Ddns-servers=" 180PACKAGECONFIG[no-dns-fallback] = "-Ddns-servers="
181PACKAGECONFIG[nss] = "-Dnss-systemd=true,-Dnss-systemd=false" 181PACKAGECONFIG[nss] = "-Dnss-systemd=true,-Dnss-systemd=false,,libnss-systemd"
182PACKAGECONFIG[nss-mymachines] = "-Dnss-mymachines=true,-Dnss-mymachines=false" 182PACKAGECONFIG[nss-mymachines] = "-Dnss-mymachines=true,-Dnss-mymachines=false"
183PACKAGECONFIG[nss-resolve] = "-Dnss-resolve=true,-Dnss-resolve=false" 183PACKAGECONFIG[nss-resolve] = "-Dnss-resolve=true,-Dnss-resolve=false"
184PACKAGECONFIG[oomd] = "-Doomd=true,-Doomd=false" 184PACKAGECONFIG[oomd] = "-Doomd=true,-Doomd=false"
@@ -826,15 +826,31 @@ ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel"
826ALTERNATIVE_PRIORITY[runlevel] ?= "300" 826ALTERNATIVE_PRIORITY[runlevel] ?= "300"
827 827
828pkg_postinst:${PN}:libc-glibc () { 828pkg_postinst:${PN}:libc-glibc () {
829 sed -e '/^hosts:/s/\s*\<myhostname\>//' \ 829 if ${@bb.utils.contains('PACKAGECONFIG', 'myhostname', 'true', 'false', d)}; then
830 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \ 830 sed -e '/^hosts:/s/\s*\<myhostname\>//' \
831 -i $D${sysconfdir}/nsswitch.conf 831 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \
832 -i $D${sysconfdir}/nsswitch.conf
833 fi
834 if ${@bb.utils.contains('PACKAGECONFIG', 'nss', 'true', 'false', d)}; then
835 sed -e 's#\(^passwd:.*\)#\1 systemd#' \
836 -e 's#\(^group:.*\)#\1 systemd#' \
837 -e 's#\(^shadow:.*\)#\1 systemd#' \
838 -i $D${sysconfdir}/nsswitch.conf
839 fi
832} 840}
833 841
834pkg_prerm:${PN}:libc-glibc () { 842pkg_prerm:${PN}:libc-glibc () {
835 sed -e '/^hosts:/s/\s*\<myhostname\>//' \ 843 if ${@bb.utils.contains('PACKAGECONFIG', 'myhostname', 'true', 'false', d)}; then
836 -e '/^hosts:/s/\s*myhostname//' \ 844 sed -e '/^hosts:/s/\s*\<myhostname\>//' \
837 -i $D${sysconfdir}/nsswitch.conf 845 -e '/^hosts:/s/\s*myhostname//' \
846 -i $D${sysconfdir}/nsswitch.conf
847 fi
848 if ${@bb.utils.contains('PACKAGECONFIG', 'nss', 'true', 'false', d)}; then
849 sed -e '/^passwd:/s#\s*systemd##' \
850 -e '/^group:/s#\s*systemd##' \
851 -e '/^shadow:/s#\s*systemd##' \
852 -i $D${sysconfdir}/nsswitch.conf
853 fi
838} 854}
839 855
840PACKAGE_WRITE_DEPS += "qemu-native" 856PACKAGE_WRITE_DEPS += "qemu-native"