]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
More options for ext2 based initrd. echo y hack dropped (unneccessary).
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 3 Jun 2006 20:43:35 +0000 (20:43 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 3 Jun 2006 20:43:35 +0000 (20:43 +0000)
svn-id: @7466

geninitrd

index 6be1f31bb2464bbe0cbeeb53622758a8f11d92a3..70b8b11abf9688cc95c09b6b5f13b40be624f00d 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -1010,10 +1010,8 @@ fi
 
 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"
This page took 0.046473 seconds and 4 git commands to generate.