summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2014-11-10 16:45:01 (GMT)
committerJavier Jardón <jjardon@gnome.org>2014-11-17 21:29:22 (GMT)
commit324b5f1a3295c54355f56ba58adef2c14cc34e40 (patch)
tree64882b9c0b18f4433b03c26040ef3b39d4fc8bcb
parentb076ed3ea80a947fc4c7b5fe023e03873e55990c (diff)
downloaddefinitions-324b5f1a3295c54355f56ba58adef2c14cc34e40.tar.gz
systemd.morph: Configure network using systemd
-rw-r--r--strata/foundation/systemd.morph11
1 files changed, 9 insertions, 2 deletions
diff --git a/strata/foundation/systemd.morph b/strata/foundation/systemd.morph
index b19ef26..1ee23cb 100644
--- a/strata/foundation/systemd.morph
+++ b/strata/foundation/systemd.morph
@@ -13,9 +13,16 @@ install-commands:
- ln -s /lib/systemd/systemd "$DESTDIR"/sbin/init
- for f in telinit runlevel shutdown poweroff reboot halt; do ln -s /bin/systemctl
"$DESTDIR/sbin/$f"; done
-- rm -f "$DESTDIR/etc/udev/rules.d/80-net-name-slot.rules"
-- touch "$DESTDIR/etc/udev/rules.d/80-net-name-slot.rules"
- sed -e 's|@sushell@|/bin/sh|g' units/debug-shell.service.in >"$DESTDIR/etc/systemd/system/debug-shell.service"
- sed -r -e '/Options=/s/,?strictatime//' "$DESTDIR/lib/systemd/system/tmp.mount"
>"$DESTDIR/etc/systemd/system/tmp.mount"
- touch "$DESTDIR/etc/machine-id"
+post-install-commands:
+- |
+ cat > "$DESTDIR/etc/systemd/network/10-dhcp.network" << "EOF"
+ [Match]
+ Name=en*
+
+ [Network]
+ DHCP=yes
+ EOF