kadischi/livecd_generator livecd-mkinitrd.sh,1.20,1.21

Jasper O'neal Hartline (autopsy) fedora-extras-commits at redhat.com
Mon Aug 21 02:05:05 UTC 2006


Author: autopsy

Update of /cvs/devel/kadischi/livecd_generator
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18671/kadischi/livecd_generator

Modified Files:
	livecd-mkinitrd.sh 
Log Message:
Temporary fix for initrd blocksize differences between FC5 and FC6T2


Index: livecd-mkinitrd.sh
===================================================================
RCS file: /cvs/devel/kadischi/livecd_generator/livecd-mkinitrd.sh,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- livecd-mkinitrd.sh	15 Aug 2006 23:26:36 -0000	1.20
+++ livecd-mkinitrd.sh	21 Aug 2006 02:05:03 -0000	1.21
@@ -225,7 +225,12 @@
 # We have to "echo y |" so that it doesn't complain about $IMAGE not
 # being a block device
 # We also use -b 4096 to rectify issue: BZ #202715
-echo y | /sbin/mke2fs -b 4096 $LODEV $IMAGESIZE >/dev/null 2>/dev/null
+echo $kernel | grep FC5
+if [ "$?" -eq "0" ]; then
+    echo y | /sbin/mke2fs $LODEV $IMAGESIZE >/dev/null 2>/dev/null
+else
+    echo y | /sbin/mke2fs -b 4096 $LODEV $IMAGESIZE >/dev/null 2>/dev/null
+fi
 /sbin/tune2fs -i0 $LODEV >/dev/null
 
 if [ -n "$verbose" ]; then




More information about the scm-commits mailing list