Module Name:    src
Committed By:   htodd
Date:           Fri Mar  1 14:28:23 UTC 2013

Modified Files:
        src/distrib/utils/embedded/conf: evbarm.conf

Log Message:
Disklabel need to use sectors, not bytes. Thanks to agc.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/distrib/utils/embedded/conf/evbarm.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/utils/embedded/conf/evbarm.conf
diff -u src/distrib/utils/embedded/conf/evbarm.conf:1.9 src/distrib/utils/embedded/conf/evbarm.conf:1.10
--- src/distrib/utils/embedded/conf/evbarm.conf:1.9	Thu Feb 21 15:13:10 2013
+++ src/distrib/utils/embedded/conf/evbarm.conf	Fri Mar  1 14:28:22 2013
@@ -1,4 +1,4 @@
-# $NetBSD: evbarm.conf,v 1.9 2013/02/21 15:13:10 hans Exp $
+# $NetBSD: evbarm.conf,v 1.10 2013/03/01 14:28:22 htodd Exp $
 # evbarm shared config
 #
 image=$HOME/${board}.img
@@ -14,7 +14,9 @@ size=0		# autocompute
 msdosid=12
 
 make_label_evbarm() {
-	local totalsize=$(( ${newsize} * 1024 * 2 ))
+	# compute all sizes in terms of sectors
+	local totalsize=$(( ${newsize} * 1024 * 2 / 512 ))
+
 	local swapsize=$(( ${swap} * 1024 ))
 	local bootsize=$(( ${boot} * 1024 ))
 

Reply via email to