Module Name: othersrc
Committed By: agc
Date: Thu May 19 00:24:22 UTC 2011
Modified Files:
othersrc/external/bsd/genraidconf: genraidconf.sh
Log Message:
one less magic number - make it obvious what the NetBSD partition id is.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 othersrc/external/bsd/genraidconf/genraidconf.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/external/bsd/genraidconf/genraidconf.sh
diff -u othersrc/external/bsd/genraidconf/genraidconf.sh:1.4 othersrc/external/bsd/genraidconf/genraidconf.sh:1.5
--- othersrc/external/bsd/genraidconf/genraidconf.sh:1.4 Wed May 18 19:17:21 2011
+++ othersrc/external/bsd/genraidconf/genraidconf.sh Thu May 19 00:24:22 2011
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: genraidconf.sh,v 1.4 2011/05/18 19:17:21 agc Exp $
+# $NetBSD: genraidconf.sh,v 1.5 2011/05/19 00:24:22 agc Exp $
# Copyright (c) 2011 Alistair Crooks <[email protected]>
# All rights reserved.
@@ -49,6 +49,7 @@
doit=""
raiddev=raid0
+netbsdpartid=169
minraid5=3 # per mrg, no hotswap
raidlevel=1 # default is RAID1 protection
spare=0
@@ -155,7 +156,7 @@
if ${doslabel}; then
for d in ${disks}; do
secs=$(expr ${sectorc} - 2048)
- ${doit} fdisk -u -a -i -f -3 -s 169/2048/${secs} -b 100/1/${sectorc} -A 2048/2048 ${d}a
+ ${doit} fdisk -u -a -i -f -3 -s ${netbsdpartid}/2048/${secs} -b 100/1/${sectorc} -A 2048/2048 ${d}a
done
fi