blob: 369aa276fe95ce14ea9e6ab9d1379661a71548d9 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
name: systemd
kind: chunk
build-system: autotools
pre-configure-commands:
# systemd prematurely kills the user session
- |
cat >> units/user@.service.m4.in <<EOF
KillSignal=SIGCONT
ExecStop=/bin/kill -TERM \$MAINPID
EOF
# overwrite systemd's pam config with one that works
- |
cat > "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"
|