From 0ee950491197e8c528249d64ca3276b39bad0ddd Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 20 Apr 2015 13:57:43 +0000 Subject: all: replace genext2fs with make_ext4fs Signed-off-by: Jo-Philipp Wich SVN-Revision: 45517 --- target/linux/x86/image/gen_image_generic.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'target/linux/x86') diff --git a/target/linux/x86/image/gen_image_generic.sh b/target/linux/x86/image/gen_image_generic.sh index 3fb31f6e40..17d969b96b 100755 --- a/target/linux/x86/image/gen_image_generic.sh +++ b/target/linux/x86/image/gen_image_generic.sh @@ -23,17 +23,15 @@ cyl=$(( ($KERNELSIZE + $ROOTFSSIZE) * 1024 * 1024 / ($head * $sect * 512))) set `ptgen -o "$OUTPUT" -h $head -s $sect -p ${KERNELSIZE}m -p ${ROOTFSSIZE}m ${ALIGN:+-l $ALIGN} ${SIGNATURE:+-S 0x$SIGNATURE}` KERNELOFFSET="$(($1 / 512))" -KERNELSIZE="$(($2 / 512))" +KERNELSIZE="$2" ROOTFSOFFSET="$(($3 / 512))" ROOTFSSIZE="$(($4 / 512))" -BLOCKS="$((($KERNELSIZE / 2) - 1))" - [ -n "$PADDING" ] && dd if=/dev/zero of="$OUTPUT" bs=512 seek="$ROOTFSOFFSET" conv=notrunc count="$ROOTFSSIZE" dd if="$ROOTFSIMAGE" of="$OUTPUT" bs=512 seek="$ROOTFSOFFSET" conv=notrunc [ -n "$NOGRUB" ] && exit 0 -genext2fs -d "$KERNELDIR" -b "$BLOCKS" "$OUTPUT.kernel" +make_ext4fs -J -l "$KERNELSIZE" "$OUTPUT.kernel" "$KERNELDIR" dd if="$OUTPUT.kernel" of="$OUTPUT" bs=512 seek="$KERNELOFFSET" conv=notrunc rm -f "$OUTPUT.kernel" -- cgit v1.2.3