On Mon, 9 Nov 2020 21:02:42 -0600
Bruce Dubbs via blfs-support <[email protected]>
wrote:
> On 11/9/20 8:47 PM, Scott Andrews via blfs-support wrote:
> > LSB-Tools will fails to create symlinks properly in the following
> > layout mv /etc/rc.d/init.d /etc
> >
> > layout as follows
> >
> > /etc/init.d
> >
> > /etc/rc.d/
> > rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d
> >
>
> The design of the layout is:
>
> $ ls -l /etc/init.d
> lrwxrwxrwx 1 root root 11 Feb 22 2020 /etc/init.d -> rc.d/init.d
>
> $ ls -l //etc/rc.d
> total 36
> drwxr-xr-x 2 root root 4096 Feb 23 2020 init.d
> drwxr-xr-x 2 root root 4096 Feb 23 2020 rc0.d
> drwxr-xr-x 2 root root 4096 Feb 23 2020 rc1.d
> drwxr-xr-x 2 root root 4096 Feb 23 2020 rc2.d
> drwxr-xr-x 2 root root 4096 Feb 23 2020 rc3.d
> drwxr-xr-x 2 root root 4096 Feb 23 2020 rc4.d
> drwxr-xr-x 2 root root 4096 Feb 23 2020 rc5.d
> drwxr-xr-x 2 root root 4096 Feb 23 2020 rc6.d
> drwxr-xr-x 2 root root 4096 Feb 22 2020 rcS.d
>
> LSB tools assumes this layout.
>
> It is has been built into the lfs-bootscripts install procedure since
> 2011.
>
> -- Bruce
I fully understand that and the layout is now incorrect, see the new man
page for inittab. Also see the current LSB docs. That is my next
change/fix. /etc/init.d/rc might have to be patched as well for
the newer correct location of the init scripts. Anyhow lsb-tools should
do the correct thing anyway.
I use lsb-tools to install all the symlinks for the lfs-bootscripts
also, which in my opinion should be done as well. Lsb-tools should
also be a requirement for the lfs base system and when installing the
init scripts in blfs should also be used, Otherwise what is the
purpose?
Also when one needs to edit a previously installed init script, you
must remove the symlinks (using lsb-tools) before editing the init
script and running install_initd <script> or lsb-tools leaves the old
symlinks and installs the "new" symlinks.
Here is the output from current man page as installed by lfs
system. Notice that the run levels specify /etc/init.d not
the /etc/rc.d/init.d as lsf currently uses. Notice
l0:0:wait:/etc/init.d/rc 0 not as it is currently.
man inittab
A more elaborate inittab with different runlevels (see the comments
inside):
# Level to run in
id:2:initdefault:
# Boot-time system configuration/initialization script.
si::sysinit:/etc/init.d/rcS
# What to do in single-user mode.
~:S:wait:/sbin/sulogin
# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# What to do at the "3 finger salute".
ca::ctrlaltdel:/sbin/shutdown -t1 -h now
# Runlevel 2,3: getty on virtual consoles
# Runlevel 3: getty on terminal (ttyS0) and modem
(ttyS1) 1:23:respawn:/sbin/getty tty1 VC linux
2:23:respawn:/sbin/getty tty2 VC linux
3:23:respawn:/sbin/getty tty3 VC linux
4:23:respawn:/sbin/getty tty4 VC linux
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page