From f24a041cd43c00c86dee8f737647ca8997d854a6 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 17 Jul 2023 09:58:53 +0800 Subject: [PATCH] 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". --- chapter08/udev.xml | 9 +++++++++ 1 file changed, 9 insertions(+) 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 @@ sed -i -e 's/GROUP="render"/GROUP="video"/' \ -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in + Remove one udev rule requiring a full Systemd installation: + + sed '/systemd-sysctl/s/^/#/' -i rules.d/99-systemd.rules.in + Prepare Udev for compilation: mkdir -p build @@ -112,6 +116,11 @@ meson setup \ build.ninja | awk '{ print $2 }') \ $(realpath libudev.so --relative-to .) + Remove one udev rule file requiring a full Systemd + installation: + +rm rules.d/90-vconsole.rules + Install the package: install -vm755 -d {/usr/lib,/etc}/udev/{hwdb,rules}.d