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

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Mon Jun 21 06:28:37 PDT 2004


winkie      04/06/21 07:28:37

  Modified:    bootscripts CHANGELOG
               bootscripts/lfs/init.d udev
  Log:
  Re-ordered the "echo" and "mount" commands to prevent a possible race
  
  Revision  Changes    Path
  1.105     +5 -0      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.104
  retrieving revision 1.105
  diff -u -r1.104 -r1.105
  --- CHANGELOG	20 Jun 2004 15:31:25 -0000	1.104
  +++ CHANGELOG	21 Jun 2004 13:28:37 -0000	1.105
  @@ -1,3 +1,8 @@
  +n/a - June 21, 2004
  +
  +	* Re-ordered the "mount" and "echo" commands in the udev script, to
  +	  prevent a possible race
  +
   n/a - June 20, 2004
   
   	* Rolled back to the /dev/.udev.tdb check from 2.1.1, since the new
  
  
  
  1.8       +4 -4      LFS/bootscripts/lfs/init.d/udev
  
  Index: udev
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/lfs/init.d/udev,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- udev	20 Jun 2004 15:31:25 -0000	1.7
  +++ udev	21 Jun 2004 13:28:37 -0000	1.8
  @@ -29,16 +29,16 @@
   
   		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').
   		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
  +
   		# Populate /dev with all the devices that are already available,
   		# and save it's status so we can report failures.
   		udevstart || failed=1
  
  
  



More information about the lfs-book mailing list