diff options
author | Tim Yardley <lst@openwrt.org> | 2006-10-25 23:51:48 +0000 |
---|---|---|
committer | Tim Yardley <lst@openwrt.org> | 2006-10-25 23:51:48 +0000 |
commit | 3562984cb2ffaa9442160f739956c1049bf1dc3e (patch) | |
tree | 2b5e02736ff5815b4b8ebbe666c11a5ec1ac4128 /target | |
parent | c124cbd78c45d256afd53b510f263b05883b8f27 (diff) | |
download | upstream-3562984cb2ffaa9442160f739956c1049bf1dc3e.tar.gz upstream-3562984cb2ffaa9442160f739956c1049bf1dc3e.tar.bz2 upstream-3562984cb2ffaa9442160f739956c1049bf1dc3e.zip |
fix partition issue with x86, leveraging the default size on the second partition (all of the remaining drive) in order to get around size differences
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5293 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-x | target/image/x86/gen_image.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target/image/x86/gen_image.sh b/target/image/x86/gen_image.sh index 95be6cc8ef..21deeee6ac 100755 --- a/target/image/x86/gen_image.sh +++ b/target/image/x86/gen_image.sh @@ -2,8 +2,8 @@ # Copyright (C) 2006 OpenWrt.org [ $# == 5 ] || { - echo "SYNTAX: $0 <file> <kernel size> <kernel directory> <rootfs size> <rootfs image>" - exit 1 + echo "SYNTAX: $0 <file> <kernel size> <kernel directory> <rootfs size> <rootfs image>" + exit 1 } file="$1" @@ -22,20 +22,20 @@ n p 1 -+${part1s}M ++$(($part1s * 1024))K n p 2 -+${part2s}M + w q EOF block() { - echo -e 'p\nq' | fdisk -u -C $cyl -H $head -S $sect "$file" | awk -v file="$file$1" -v n="$(($2 + 2))" ' + echo -e 'p\nq' | fdisk -u -C $cyl -H $head -S $sect "$file" | awk -v file="$file$1" -v n="$(($2 + 2))" ' $1 == file { - print $n * 512 + print $n * 512 }' } |