Author: glen
Date: Sat Jun  3 22:43:35 2006
New Revision: 7466

Modified:
   geninitrd/trunk/geninitrd
Log:
More options for ext2 based initrd. echo y hack dropped (unneccessary).

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd   (original)
+++ geninitrd/trunk/geninitrd   Sat Jun  3 22:43:35 2006
@@ -1010,10 +1010,8 @@
 
 if [ "$INITRDFS" = "ext2" ] ; then
        dd if=/dev/zero of="$IMAGE" bs=1k count="$IMAGESIZE" 2> /dev/null
-
-       # We have to "echo y |" so that it doesn't complain about $IMAGE not
-       # being a block device
-       echo y | mke2fs -F "$IMAGE" "$IMAGESIZE" >/dev/null 2>/dev/null
+       mke2fs -q -F -b 1024 -m 0 "$IMAGE" 2>/dev/null 1>&2
+       tune2fs -i 0 "$IMAGE" >/dev/null 2>&1
 
        mkdir -p "$MNTPOINT"
        mount -o loop -t ext2 "$IMAGE" "$MNTPOINT"
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to