diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-07-17 09:58:53 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-07-17 10:14:18 +0800 |
commit | f24a041cd43c00c86dee8f737647ca8997d854a6 (patch) | |
tree | 6cb60ef6237d3f1810cc3011ebc95e8c22ecdc32 /chapter08 | |
parent | 870d24c5cb3ce12dc43e5b8f71aee84d74e73015 (diff) |
udev: Remove two udev rules requiring a full systemd installation
Or they'll produce some error messages saying "cannot execute
systemd-sysctl or systemd-vconsole-setup".
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/udev.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chapter08/udev.xml b/chapter08/udev.xml index 36edcc8a0..2d3792511 100644 --- a/chapter08/udev.xml +++ b/chapter08/udev.xml @@ -51,6 +51,10 @@ <screen><userinput remap="pre">sed -i -e 's/GROUP="render"/GROUP="video"/' \ -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in</userinput></screen> + <para>Remove one udev rule requiring a full Systemd installation:</para> + + <screen><userinput remap="pre">sed '/systemd-sysctl/s/^/#/' -i rules.d/99-systemd.rules.in</userinput></screen> + <para>Prepare Udev for compilation:</para> <screen><userinput remap="configure">mkdir -p build @@ -112,6 +116,11 @@ meson setup \ build.ninja | awk '{ print $2 }') \ $(realpath libudev.so --relative-to .)</userinput></screen> + <para>Remove one udev rule file requiring a full Systemd + installation:</para> + +<screen><userinput remap="make">rm rules.d/90-vconsole.rules</userinput></screen> + <para>Install the package:</para> <screen><userinput remap="install">install -vm755 -d {/usr/lib,/etc}/udev/{hwdb,rules}.d |