diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-12-18 16:36:28 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-12-18 16:38:21 +0800 |
commit | 7380559028367ee1f0da6125d1f30f3b0a64a290 (patch) | |
tree | 64c93a09077f66335f029b92ebe514b3113480c0 /chapter08/systemd.xml | |
parent | 9afac649f272902fe78f5d83804f8d8270b6e62b (diff) |
systemd: Disable systemd-sysupdate with a better way
Diffstat (limited to 'chapter08/systemd.xml')
-rw-r--r-- | chapter08/systemd.xml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index a1999e278..58ede8508 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -69,6 +69,7 @@ meson setup \ -Dpamconfdir=no \ -Ddev-kvm-mode=0660 \ -Dnobody-group=nogroup \ + -Dsysupdate=disabled \ -Dukify=disabled \ -Ddocdir=/usr/share/doc/systemd-&systemd-version; \ ..</userinput></screen> @@ -191,6 +192,17 @@ meson setup \ </varlistentry> <varlistentry> + <term><parameter>-Dsysupdate=disabled</parameter></term> + <listitem> + <para>Do not install the <command>systemd-sysupdate</command> + tool. It's designed for automatically upgrading binary distros, + so it's useless for a basic Linux system built from source. + And it will report errors on boot if it's enabled but not properly + configured.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><parameter>-Dukify=disabled</parameter></term> <listitem> <para>Do not install the <command>systemd-ukify</command> script. @@ -227,12 +239,6 @@ meson setup \ <screen><userinput remap="adjust">systemctl preset-all</userinput></screen> - <para>Disable two services for upgrading binary distros. They are useless for - a basic Linux system built from source, and each one will report an error if - it's enabled but not configured:</para> - -<screen><userinput remap="adjust">systemctl disable systemd-sysupdate{,-reboot}</userinput></screen> - <!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out. If it causes any trouble, we can add this back and also copy it into BLFS --> <!-- |