[lfs] branch openrc updated: OpenRC: Force symlinking for init and shutdown.

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]> Sat, 06 Jun 2026 21:35:56 +0000
Newsgroups gmane.linux.lfs.book
Message-ID <178078175673.23987.7212922452636223292@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 918478105 OpenRC: Force symlinking for init and shutdown.
918478105 is described below

commit 9184781054b46c568c9d76515f6cf2eb12d777b9
Author: Zeckmathederg <[email protected]>
AuthorDate: Sat Jun 6 15:34:40 2026 -0600

    OpenRC: Force symlinking for init and shutdown.
    
    This is just in case if someone is reinstalling and runs the commands
    for creating init, shutdown, poweroff, and reboot.
---
 chapter08/openrc.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chapter08/openrc.xml b/chapter08/openrc.xml
index 7227e951b..4e9e4d34e 100644
--- a/chapter08/openrc.xml
+++ b/chapter08/openrc.xml
@@ -120,7 +120,7 @@ mv -v /usr/{s,}bin/rc-update</userinput></screen>
     symlinks:</para>
 
 <screen><userinput>for i in {init,shutdown}; do
-  ln -sv openrc-$i /sbin/$i
+  ln -svf openrc-$i /sbin/$i
 done
 
 cat &gt; /sbin/poweroff &lt;&lt; "EOF"

-- 
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