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".
This commit is contained in:
Xi Ruoyao 2023-07-17 09:58:53 +08:00
parent 870d24c5cb
commit f24a041cd4
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -51,6 +51,10 @@
<screen><userinput remap="pre">sed -i -e 's/GROUP="render"/GROUP="video"/' \ <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> -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> <para>Prepare Udev for compilation:</para>
<screen><userinput remap="configure">mkdir -p build <screen><userinput remap="configure">mkdir -p build
@ -112,6 +116,11 @@ meson setup \
build.ninja | awk '{ print $2 }') \ build.ninja | awk '{ print $2 }') \
$(realpath libudev.so --relative-to .)</userinput></screen> $(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> <para>Install the package:</para>
<screen><userinput remap="install">install -vm755 -d {/usr/lib,/etc}/udev/{hwdb,rules}.d <screen><userinput remap="install">install -vm755 -d {/usr/lib,/etc}/udev/{hwdb,rules}.d