cvs commit: LFS/bootscripts/rc.d/init.d checkfs

gerard at linuxfromscratch.org gerard at linuxfromscratch.org
Sun May 26 11:43:08 PDT 2002


gerard      02/05/26 11:43:08

  Modified:    bootscripts CHANGELOG
               bootscripts/rc.d/init.d checkfs
  Log:
  added patch to make checklf work on non-ext2 file systems too
  
  Revision  Changes    Path
  1.5       +5 -0      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- CHANGELOG	5 Apr 2002 19:22:44 -0000	1.4
  +++ CHANGELOG	26 May 2002 18:43:08 -0000	1.5
  @@ -1,3 +1,8 @@
  +CVS - May 26th, 2002:
  +
  +	* Fixed up checklfs to work with non-ext2 filesystems too (such as
  +	minix).
  +
   1.9 - April 5th, 2002:
   
   	* reloadproc function had a missing '=' in the "failure 1" command (it
  
  
  
  1.2       +4 -2      LFS/bootscripts/rc.d/init.d/checkfs
  
  Index: checkfs
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/rc.d/init.d/checkfs,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- checkfs	16 Mar 2002 18:26:44 -0000	1.1
  +++ checkfs	26 May 2002 18:43:08 -0000	1.2
  @@ -3,6 +3,7 @@
   
   # Based on checkfs script from LFS-3.1 and earlier.
   # Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  +# Patch to handle all fsck variants by A. Luebke - luebke at users.sourceforge.net
   
   source /etc/sysconfig/rc
   source $rc_functions
  @@ -42,7 +43,8 @@
   fi
   
   echo "Checking file systems..."
  -fsck $options -p -A -C -T
  +#Note: -a option used to be -p; but this fails e.g. on fsck.minix
  +fsck $options -a -A -C -T
   error_value=$?
   
   if [ "$error_value" = 1 ]
  @@ -75,7 +77,7 @@
   	$rc_base/init.d/reboot
   fi
   
  -if [ "$error_value" -gt 2 ]
  +if [ "$error_value" -gt 2 -a "$error_value" -lt 16 ]
   then
   	$FAILURE
   	echo "File system errors were encountered that couldn't be"
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message



More information about the lfs-book mailing list