name: systemd kind: chunk build-system: autotools pre-configure-commands: # systemd prematurely kills the user session - | cat >> units/user@.service.m4.in < "src/login/systemd-user" <<"EOF" account include system-account session include system-session session optional pam_systemd.so EOF # it becomes /usr/bin/kill, which may not exist - sed -i 's:@KILL@:/bin/kill:' units/user/systemd-exit.service.in 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 - sed -i 's:#DefaultEnvironment=:DefaultEnvironment="XDG_RUNTIME_DIR=/tmp":' "$DESTDIR/etc/systemd/system.conf"