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

nathan at linuxfromscratch.org nathan at linuxfromscratch.org
Wed Mar 24 17:59:55 PST 2004


nathan      04/03/24 18:59:55

  Modified:    bootscripts CHANGELOG
               bootscripts/lfs/init.d cleanfs
  Log:
  Alexander Lizardo commented on how if the cd command failed, the find command
  could wipe out the root filesystem.
  
  Revision  Changes    Path
  1.43      +5 -0      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- CHANGELOG	24 Mar 2004 22:48:08 -0000	1.42
  +++ CHANGELOG	25 Mar 2004 01:59:55 -0000	1.43
  @@ -1,3 +1,8 @@
  +n/a - March 24, 2004
  +
  +	* Edited cleanfs to solve a problem.  [if /tmp does not exist, it
  +	  could run the find command on the root filesystem].
  +
   2.0.1 - March 24, 2004
   
   	* Found typo in BLFS MySQL Script.
  
  
  
  1.5       +2 -2      LFS/bootscripts/lfs/init.d/cleanfs
  
  Index: cleanfs
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/lfs/init.d/cleanfs,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- cleanfs	24 Mar 2004 00:24:52 -0000	1.4
  +++ cleanfs	25 Mar 2004 01:59:55 -0000	1.5
  @@ -49,8 +49,8 @@
   		evaluate_retval
   
   		echo "Removing /tmp/*"
  -		( cd /tmp ; find -xdev -depth ! -name . ! -name lost+found \
  -				-exec rm -rf {} \; )
  +		find /tmp -xdev -mindepth 1 -depth ! -path '/tmp/lost+found*' \
  +		  -exec rm -rf {} \;
   		evaluate_retval
   
   		if [ -r /etc/sysconfig/createfiles ]; then
  
  
  



More information about the lfs-book mailing list