Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded fix msdos mbr partition size calculation
details: https://anonhg.NetBSD.org/src/rev/39c768ee973c
branches: trunk
changeset: 784820:39c768ee973c
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Feb 10 16:56:01 2013 +0000
description:
fix msdos mbr partition size calculation
diffstat:
distrib/utils/embedded/mkimage | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 4d39e4acfc3c -r 39c768ee973c distrib/utils/embedded/mkimage
--- a/distrib/utils/embedded/mkimage Sun Feb 10 16:40:21 2013 +0000
+++ b/distrib/utils/embedded/mkimage Sun Feb 10 16:56:01 2013 +0000
@@ -1,5 +1,5 @@
#!/bin/sh -x
-# $NetBSD: mkimage,v 1.29 2013/02/10 16:13:23 christos Exp $
+# $NetBSD: mkimage,v 1.30 2013/02/10 16:56:01 jmcneill Exp $
#
# Copyright (c) 2013 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -157,7 +157,9 @@
${DISKLABEL} -R -F ${image} ${tmp}/label
if [ -n ${msdosid} ]; then
echo ${bar} Running fdisk ${bar}
- ${FDISK} -f -u -0 -s ${msdosid}/${init}/${boot} -F ${image}
+ initsecs=$((${init} * 1024))
+ bootsecs=$((${boot} * 1024))
+ ${FDISK} -f -u -0 -s ${msdosid}/${initsecs}/${bootsecs} -F ${image}
fi
if $compress; then
Home |
Main Index |
Thread Index |
Old Index