cvs commit: LFS/bootscripts/lfs/init.d udev

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Sun Jun 20 08:31:25 PDT 2004


winkie      04/06/20 09:31:25

  Modified:    bootscripts CHANGELOG
               bootscripts/lfs/init.d udev
  Log:
  Rolled back to the /dev/.udev.tdb check from 2.1.1
  
  Revision  Changes    Path
  1.104     +6 -0      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.103
  retrieving revision 1.104
  diff -u -r1.103 -r1.104
  --- CHANGELOG	18 Jun 2004 22:31:30 -0000	1.103
  +++ CHANGELOG	20 Jun 2004 15:31:25 -0000	1.104
  @@ -1,3 +1,9 @@
  +n/a - June 20, 2004
  +
  +	* Rolled back to the /dev/.udev.tdb check from 2.1.1, since the new
  +	  one doesn't work as well, and the bug that caused it to change is
  +	  now fixed
  +
   n/a - June 18, 2004
   
   	* Updated sysconfig/console
  
  
  
  1.7       +9 -5      LFS/bootscripts/lfs/init.d/udev
  
  Index: udev
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/lfs/init.d/udev,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- udev	3 Jun 2004 01:59:32 -0000	1.6
  +++ udev	20 Jun 2004 15:31:25 -0000	1.7
  @@ -23,17 +23,21 @@
   
   case "$1" in
   	start)
  +		# Don't attempt to populate the /dev directory when something
  +		# else has already set it up.
  +		[ -f /dev/.udev.tdb ] && exit 0
  +
   		echo "Populating /dev with device nodes..."
   
  +		# Assign udev to get hotplug events.  This will be overwritten
  +		# in the hotplug bootscript
  +		echo /sbin/udev > /proc/sys/kernel/hotplug
  +
   		# Mount a temporary file system over /dev, so that any devices
   		# made or removed during this boot don't affect the next one.
   		# The reason we don't write to mtab is because we don't ever
   		# want /dev to be unavailable (such as by `umount -a').
  -		grep -q " /dev " /proc/mounts || mount -n -t ramfs ramfs /dev
  -
  -		# Assign udev to get hotplug events.  This will be overwritten
  -		# in the hotplug bootscript
  -		echo /sbin/udev > /proc/sys/kernel/hotplug
  +		mount -n -t ramfs ramfs /dev
   
   		# Populate /dev with all the devices that are already available,
   		# and save it's status so we can report failures.
  
  
  



More information about the lfs-book mailing list