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

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Sun May 16 19:07:03 PDT 2004


winkie      04/05/16 20:07:03

  Modified:    bootscripts CHANGELOG
               bootscripts/lfs/init.d udev
  Log:
  Don't bring populate /dev if it's already setup
  
  Revision  Changes    Path
  1.82      +2 -0      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- CHANGELOG	17 May 2004 01:35:35 -0000	1.81
  +++ CHANGELOG	17 May 2004 02:07:03 -0000	1.82
  @@ -2,6 +2,8 @@
   
   	* Added sysklogd configuration file
   	* Added example /etc/sysconfig/console file
  +	* Do not attempt to populate /dev if that directory has already been
  +	  set up earlier in bootup (such as on initramfs/initrd)
   
   n/a - May 15, 2004
   
  
  
  
  1.2       +4 -0      LFS/bootscripts/lfs/init.d/udev
  
  Index: udev
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/lfs/init.d/udev,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- udev	4 May 2004 22:15:03 -0000	1.1
  +++ udev	17 May 2004 02:07:03 -0000	1.2
  @@ -29,6 +29,10 @@
   			echo /sbin/udev > /proc/sys/kernel/hotplug
   		fi
   
  +		# 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..."
   
   		# Mount a temporary file system over /dev, so that any devices
  
  
  



More information about the lfs-book mailing list