diff options
author | Javier Jardón <jjardon@gnome.org> | 2014-11-10 16:45:01 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2014-11-17 21:29:22 +0000 |
commit | 324b5f1a3295c54355f56ba58adef2c14cc34e40 (patch) | |
tree | 64882b9c0b18f4433b03c26040ef3b39d4fc8bcb /strata/foundation/systemd.morph | |
parent | b076ed3ea80a947fc4c7b5fe023e03873e55990c (diff) | |
download | definitions-324b5f1a3295c54355f56ba58adef2c14cc34e40.tar.gz |
systemd.morph: Configure network using systemd
Diffstat (limited to 'strata/foundation/systemd.morph')
-rw-r--r-- | strata/foundation/systemd.morph | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/strata/foundation/systemd.morph b/strata/foundation/systemd.morph index b19ef261..1ee23cb8 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 |