[lfs] branch openrc updated: OpenRC; usage: A few changes.

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <176575415122.30483.14174584116368581664@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch openrc
in repository lfs.

The following commit(s) were added to refs/heads/openrc by this push:
     new a986704a1 OpenRC; usage: A few changes.
a986704a1 is described below

commit a986704a11c5359fda60bbb38e9c796df25e8ec6
Author: Zeckmathederg <[email protected]>
AuthorDate: Sun Dec 14 16:11:53 2025 -0700

    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 @@
 
     <para>Fix a script to allow a normal installation:</para>
 
-<screen remap="pre"><userinput>sed -i '/set\ -u/d' tools/meson_final.sh</userinput></screen>
+<screen remap="pre"><userinput>sed -i '/set -u/d' tools/meson_final.sh</userinput></screen>
 
     <para>Prepare OpenRC for compilation:</para>
 
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:</para>
 
 <screen><userinput>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</userinput></screen>
 
@@ -148,6 +148,7 @@ start()
 }</literal>
 EOF
 
+chmod +x /etc/init.d/udevd
 rc-update add udevd boot</userinput></screen>
 
     <para>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.