Summary: Using the LSB Bootscripts

DJ Lucas dj at
Sat May 14 14:37:11 PDT 2011

Everything is covered per this conversation in SVN with the exception of 
accounting for missing /run in LightCube OS, but I think it was decided 
that it would be added. Also no ip flush (I forgot, but will get it in a 
day or two) on down interface, and dhcp calls not accounted for. Quite a 
few changes are required for the book to work with them now including:

* rendering of scripts in the book, path and name changes
* tarball creation with book render job
* inittab is installed by the bootscripts package (this could be changed 
if desired)
* initd-tools page needs to be added
* the path for the setclock script in 55-lfs.rules needs to be changed
* the network interface configuration file should be placed in 
* setting clock parameters for the setclock script is done in /etc/
* setting the hostname is now done in /etc/
* add mention of turning off bootlogging and interactive prompt

For LightCube OS (or anyone else that would like to customize the 
scripts for their release), hopefully all that is needed is a similar 
patch to the one below, in addition to the one adding additional 
services and scripts (which will need to be rediffed for the new file 

diff -Naur lsb-bootscripts-20110514/etc/default/ 
--- lsb-bootscripts-20110514/etc/default/    2011-05-14 
16:00:31.000000000 -0500
+++ lsb-bootscripts-20110514-LCOS/etc/default/    2011-05-14 
16:30:27.000000000 -0500
@@ -9,7 +9,7 @@

  # Hostname

  # System time variables
@@ -17,12 +17,12 @@

  # Manual input is not appropriate on remote systems. Define what 
happens when
  # an error is encountered that interupts the boot/shutdown proceess

  # Distro Information
-DISTRO="Linux From Scratch" # The distro name
-DISTRO_CONTACT="lfs-dev at" # Bug report address
-DISTRO_MINI="lfs" # Short name used in filenames for distro config
+DISTRO="LightCube OS"

  # Define custom colors used in messages printed to the screen
  BRACKET="\\033[1;34m" # Blue
@@ -45,9 +45,9 @@

  # Interactive startup
-iprompt="yes" # Wether to display the interactive boot promp
+iprompt="no" # Wether to display the interactive boot promp
  itime="2" # The ammount of time (in seconds) to display the prompt
-dlen="29" # The total length of the distro welcome string
+dlen="23" # The total length of the distro welcome string
  ilen="38" # The total length of the interactive message
  welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}"
  i_message="Press '${FAILURE}I${NORMAL}' to enter interactive startup"
diff -Naur lsb-bootscripts-20110514/Makefile 
--- lsb-bootscripts-20110514/Makefile    2011-05-14 16:00:31.000000000 -0500
+++ lsb-bootscripts-20110514-LCOS/Makefile    2011-05-14 
16:26:42.000000000 -0500
@@ -25,7 +25,7 @@
  install: create-dirs
      install -m ${MODE} etc/init.d/checkfs               ${EXTDIR}/init.d/
      install -m ${MODE} etc/init.d/cleanfs               ${EXTDIR}/init.d/
-    install -m ${CONFMODE} etc/init.d/lfs-functions     ${EXTDIR}/init.d/
+    install -m ${CONFMODE} etc/init.d/lfs-functions     
      install -m ${MODE} etc/init.d/halt                  ${EXTDIR}/init.d/
      install -m ${MODE} etc/init.d/console               ${EXTDIR}/init.d/
      install -m ${MODE} etc/init.d/localnet              ${EXTDIR}/init.d/

Think that covers it all. Time for some testing.

-- DJ Lucas

This message has been scanned for viruses and
dangerous content, and is believed to be clean.

More information about the lfs-dev mailing list