-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path2-systemd.sh
executable file
·57 lines (44 loc) · 1.32 KB
/
2-systemd.sh
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
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
export STAGE=2
. ./environment.sh
. ./package-versions.sh
export FORCE_UNSAFE_CONFIGURE=1
if [ -f $PROGRESS_DIR/2-systemd ] ; then
exit 0
fi
echo "building systemd..."
set -e
tar xf systemd-${systemd_v}.tar.gz
cd systemd-${systemd_v}
sed -i -e 's/GROUP="render"/GROUP="video"/' \
-e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in
patch -Np1 -i ../systemd-255-upstream_fixes-1.patch
mkdir -p build
cd build
meson --prefix=/usr \
--buildtype=release \
-Ddefault-dnssec=no \
-Dfirstboot=false \
-Dinstall-tests=false \
-Dldconfig=false \
-Dsysusers=false \
-Drpmmacrosdir=no \
-Dhomed=false \
-Duserdb=false \
-Dman=disabled \
-Dmode=release \
-Dpamconfdir=no \
-Ddev-kvm-mode=0660 \
-Dnobody-group=nogroup \
-Dsysupdate=disabled \
-Dukify=disabled \
-Ddocdir=/usr/share/doc/systemd-${systemd_v} \
..
ninja
ninja install
tar -xf ../../systemd-man-pages-${systemd_v}.tar.xz --no-same-owner --strip-components=1 -C /usr/share/man
systemd-machine-id-setup
systemctl preset-all
cd ..
rm -rf systemd-${systemd_v}
touch $PROGRESS_DIR/2-systemd