From a986704a11c5359fda60bbb38e9c796df25e8ec6 Mon Sep 17 00:00:00 2001 From: Zeckmathederg Date: Sun, 14 Dec 2025 16:11:53 -0700 Subject: [PATCH] OpenRC; usage: A few changes. 1. No need to escape the space in `set -u` in the sed. 2. `chmod +x` the udevd service. 3. Add `-f` to the `ln` agetty command. Thanks to Thomas Trepl for these fixes. --- chapter08/openrc.xml | 2 +- chapter09/usage.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chapter08/openrc.xml b/chapter08/openrc.xml index 4bba8582a..4a4878d05 100644 --- a/chapter08/openrc.xml +++ b/chapter08/openrc.xml @@ -43,7 +43,7 @@ Fix a script to allow a normal installation: -sed -i '/set\ -u/d' tools/meson_final.sh +sed -i '/set -u/d' tools/meson_final.sh Prepare OpenRC for compilation: diff --git a/chapter09/usage.xml b/chapter09/usage.xml index efba5c5c0..beaa8a193 100644 --- a/chapter09/usage.xml +++ b/chapter09/usage.xml @@ -91,7 +91,7 @@ services: for i in $(seq 1 6); do - ln -sv agetty /etc/init.d/agetty.tty$i + ln -sfv agetty /etc/init.d/agetty.tty$i rc-update add agetty.tty$i default done @@ -148,6 +148,7 @@ start() } EOF +chmod +x /etc/init.d/udevd rc-update add udevd boot