summaryrefslogtreecommitdiff
path: root/strata/foundation/systemd.morph
blob: c53cef39c4a71cc9c45820670ef86831182ec023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: systemd
kind: chunk
build-system: autotools
configure-commands:
- sh autogen.sh
- |
  ./configure --prefix="$PREFIX" --enable-xz --disable-manpages \
      --disable-tests --sysconfdir=/etc --localstatedir=/var \
      --libdir="$PREFIX/lib" --libexecdir="$PREFIX/libexec" \
      --with-rootprefix= --with-rootlibdir=/lib
install-commands:
- make DESTDIR="$DESTDIR" install
- mkdir -p "$DESTDIR"/sbin
- 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
- 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=e*

  [Network]
  DHCP=yes
  EOF