meta-google: systemd: fix unwanted waitings in network-wait-online
networkd wait-online services will wait for all ethernet interfaces to
be up by default. Some interface will never be ready because it is
unused Currently only rsyslog is waiting for this service so it should
be fine to just remove this service.
Change-Id: I21b8b2e00b75fedcc2497ca40a405ed598371b53
Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
diff --git a/meta-google/recipes-google/systemd/gbmc-systemd-config.bb b/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
index ef5c1a0..7c644a2 100644
--- a/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
+++ b/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
@@ -56,6 +56,9 @@
mkdir -p ${D}${sysconfdir}/systemd/system
ln -sv /dev/null ${D}${sysconfdir}/systemd/system/systemd-pstore.service
+ # mask networkd-wait-online.service to avoid waiting
+ ln -sv /dev/null ${D}/${sysconfdir}/systemd/system/systemd-networkd-wait-online.service
+
install -d -m0755 ${D}${libdir}/sysctl.d
install -m 0644 ${WORKDIR}/40-gbmc-forward.conf ${D}${libdir}/sysctl.d/
install -m 0644 ${WORKDIR}/40-gbmc-sysctl.conf ${D}${libdir}/sysctl.d/