diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-12-17 06:42:54 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-12-18 16:31:18 +0800 |
commit | 9afac649f272902fe78f5d83804f8d8270b6e62b (patch) | |
tree | 521130283926dfff30746dff5e0e2b04e78abf72 /chapter08 | |
parent | 81d572d25f5e36fbe3bd6a2b12552be8d6a8ea8d (diff) |
Update to systemd-255
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/systemd.xml | 17 | ||||
-rw-r--r-- | chapter08/udev.xml | 12 |
2 files changed, 24 insertions, 5 deletions
diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index 761467acd..a1999e278 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -62,13 +62,14 @@ meson setup \ -Dldconfig=false \ -Dsysusers=false \ -Drpmmacrosdir=no \ - -Dhomed=false \ + -Dhomed=disabled \ -Duserdb=false \ -Dman=false \ -Dmode=release \ -Dpamconfdir=no \ -Ddev-kvm-mode=0660 \ -Dnobody-group=nogroup \ + -Dukify=disabled \ -Ddocdir=/usr/share/doc/systemd-&systemd-version; \ ..</userinput></screen> @@ -139,7 +140,8 @@ meson setup \ </varlistentry> <varlistentry> - <term><parameter>-D{userdb,homed}=false</parameter></term> + <term><parameter>-Dhomed=disabled</parameter> and + <parameter>-Duserdb=false</parameter></term> <listitem> <para>Remove two daemons with dependencies that do not fit within the scope of LFS.</para> @@ -187,6 +189,17 @@ meson setup \ <systemitem class='groupname'>nogroup</systemitem>.</para> </listitem> </varlistentry> + + <varlistentry> + <term><parameter>-Dukify=disabled</parameter></term> + <listitem> + <para>Do not install the <command>systemd-ukify</command> script. + At runtime this script requires the + <application>pefile</application> Python module that neither LFS + nor BLFS provides.</para> + </listitem> + </varlistentry> + </variablelist> <para>Compile the package:</para> diff --git a/chapter08/udev.xml b/chapter08/udev.xml index dd686f489..967b3dd84 100644 --- a/chapter08/udev.xml +++ b/chapter08/udev.xml @@ -125,11 +125,18 @@ meson setup \ </varlistentry> </variablelist> + <para>Get the list of the shipped udev helpers and save it into an + environment variable:</para> + + <screen><userinput remap="make">udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \ + awk '{print $3}' | tr -d ",'" | grep -v 'udevadm')</userinput></screen> + <para>Only build the components needed for udev:</para> <screen><userinput remap="make">ninja udevadm systemd-hwdb \ $(ninja -n | grep -Eo '(src/(lib)?udev|rules.d|hwdb.d)/[^ ]*') \ - $(realpath libudev.so --relative-to .)</userinput></screen> + $(realpath libudev.so --relative-to .) \ + $udev_helpers udevadm</userinput></screen> <para>Install the package:</para> @@ -147,8 +154,7 @@ install -vm644 rules.d/* ../rules.d/README /usr/lib/udev/rules.d/ install -vm644 $(find ../rules.d/*.rules \ -not -name '*power-switch*') /usr/lib/udev/rules.d/ install -vm644 hwdb.d/* ../hwdb.d/{*.hwdb,README} /usr/lib/udev/hwdb.d/ -install -vm755 $(find src/udev \ - -type f -not -name '*.*') /usr/lib/udev +install -vm755 $udev_helpers /usr/lib/udev install -vm644 ../network/99-default.link /usr/lib/udev/network</userinput></screen> <para>Install some custom rules and support files useful in an LFS |