From 43c2ecf0b898e8dfaca243df6946522b5d49cda5 Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Tue, 31 May 2011 03:36:33 +0000 Subject: [PATCH] Update to lfs-bootscripts-20110531. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9556 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- appendices/scripts.xml | 13 ++++++++++++- bootscripts/ChangeLog | 6 +++++- bootscripts/lfs/init.d/udev | 3 ++- chapter01/changelog.xml | 9 +++++++++ general.ent | 4 ++-- make-aux-files.sh | 4 ++-- packages.ent | 2 +- process-scripts.sh | 16 ++++++++-------- 8 files changed, 41 insertions(+), 16 deletions(-) diff --git a/appendices/scripts.xml b/appendices/scripts.xml index 7bac2588e..3c71ac149 100644 --- a/appendices/scripts.xml +++ b/appendices/scripts.xml @@ -5,6 +5,8 @@ + + @@ -24,7 +26,6 @@ - @@ -56,11 +57,21 @@ &rc; + + /etc/rc.d/init.d/functions + &functions; + + /etc/rc.d/init.d/mountvirtfs &mountvirtfs; + + /etc/rc.d/init.d/consolelog + &consolelog; + + /etc/rc.d/init.d/modules &modules; diff --git a/bootscripts/ChangeLog b/bootscripts/ChangeLog index 63a7e0d79..00e35927e 100644 --- a/bootscripts/ChangeLog +++ b/bootscripts/ChangeLog @@ -1,4 +1,8 @@ -2011-04-19 Bruce Dubbs +2011-05-31 DJ Lucas + * lfs/init.d/udev: Add multiple udev triggers for both subsystems and + devices per upstream recommendation. + +2011-04-19 Bruce Dubbs * lfs/init.d/mountvirtfs: Add creation of /run/{var,lock,shm}. * lfs/init.d/udev: Add /dev/shm -> /run/shm symlink. diff --git a/bootscripts/lfs/init.d/udev b/bootscripts/lfs/init.d/udev index a1834891d..7e68fdf7b 100644 --- a/bootscripts/lfs/init.d/udev +++ b/bootscripts/lfs/init.d/udev @@ -65,7 +65,8 @@ case "${1}" in # Now traverse /sys in order to "coldplug" devices that have # already been discovered - /sbin/udevadm trigger --action=add + /sbin/udevadm trigger --action=add --type=subsystems + /sbin/udevadm trigger --action=add --type=devices # Now wait for udevd to process the uevents we triggered /sbin/udevadm settle diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 03a9cf84a..88d01e7f9 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -36,6 +36,15 @@ --> + + 2011-05-31 + + + [dj] - Updated to lfs-bootscripts-20110531. + + + + 2011-05-23 diff --git a/general.ent b/general.ent index 5bce289a2..b12893cf0 100644 --- a/general.ent +++ b/general.ent @@ -1,5 +1,5 @@ - - + + diff --git a/make-aux-files.sh b/make-aux-files.sh index 10cdf327c..c57352a9d 100755 --- a/make-aux-files.sh +++ b/make-aux-files.sh @@ -4,11 +4,11 @@ rm -f lfs-bootscripts*.tar.bz2 # Get base file name and move bootscripts directory to that name version=`grep "ENTITY lfs-bootscripts-version" packages.ent |cut -d'"' -f2` -mv lsb-bootscripts lfs-bootscripts-$version +mv bootscripts lfs-bootscripts-$version # Create the tarball and clean up tar -cjf lfs-bootscripts-$version.tar.bz2 --exclude .svn lfs-bootscripts-$version -mv lfs-bootscripts-$version lsb-bootscripts +mv lfs-bootscripts-$version bootscripts rm -f udev-config*.bz2 diff --git a/packages.ent b/packages.ent index 2ba1b1b32..ff327fbff 100644 --- a/packages.ent +++ b/packages.ent @@ -297,7 +297,7 @@ - + diff --git a/process-scripts.sh b/process-scripts.sh index 184d5d564..44518c423 100644 --- a/process-scripts.sh +++ b/process-scripts.sh @@ -1,20 +1,20 @@ #!/bin/bash # Boot scripts -for s in lsb-bootscripts/etc/init.d/* \ - lsb-bootscripts/etc/default/* \ - lsb-bootscripts/sbin/* \ - lsb-bootscripts/lib/network-services/* +for s in bootscripts/lfs/init.d/* \ + bootscripts/lfs/sysconfig/* \ + bootscripts/lfs/sysconfig/network-devices/* \ + bootscripts/lfs/sysconfig/network-devices/services/* do script=$(basename $s) # Skip directories - [ $script == 'sbin' ] && continue - [ $script == 'network-services' ] && continue + [ $script == 'network-devices' ] && continue + [ $script == 'services' ] && continue # Disambiguate duplicate file names - [ $s == 'lsb-bootscripts/etc/default/rc' ] && script='rc-sysinit'; - [ $s == 'lsb-bootscripts/etc/default/modules' ] && script='modules-sysinit'; + [ $s == 'bootscripts/lfs/sysconfig/rc' ] && script='rc-sysinit'; + [ $s == 'bootscripts/lfs/sysconfig/modules' ] && script='modules-sysinit'; sed -e 's/\&/\&\;/g' -e 's//\>\;/g' \ -e "s/'/\&apos\;/g" -e 's/"/\"\;/g' -e 's/\t/ /g' \