Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded provide a -r rootdev option to handle...
details: https://anonhg.NetBSD.org/src/rev/99fc3bdef629
branches: trunk
changeset: 328335:99fc3bdef629
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 31 18:18:29 2014 +0000
description:
provide a -r rootdev option to handle the wd/sd/ld lossage.
diffstat:
distrib/utils/embedded/mkimage | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r a667e30655ae -r 99fc3bdef629 distrib/utils/embedded/mkimage
--- a/distrib/utils/embedded/mkimage Mon Mar 31 17:05:03 2014 +0000
+++ b/distrib/utils/embedded/mkimage Mon Mar 31 18:18:29 2014 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mkimage,v 1.46 2014/03/31 17:05:03 christos Exp $
+# $NetBSD: mkimage,v 1.47 2014/03/31 18:18:29 christos Exp $
#
# Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -72,6 +72,7 @@
Usage: $PROG -h <host-arch> [-bdmx] [-K <kerneldir>] [-S <srcdir>] [-D <destdir>] [-c <custom-files-dir>] [-s <Mb size>] [<image>]
-b Boot only, no sets loaded
+-r root device kind (sd, wd, ld)
-d Add the debug sets
-m Optimize the OS installation to mimimize disk writes for SSDs
-x Load the x sets too, not just the base ones
@@ -80,7 +81,7 @@
}
# First pass for options to get the host and src directories
-OPTS="K:D:S:bc:dh:ms:x"
+OPTS="K:D:S:bc:dh:mr:s:x"
while getopts "$OPTS" f
do
case $f in
@@ -108,6 +109,7 @@
dsets=false
xsets=false
minwrites=false
+rootdev=ld
OPTIND=1
while getopts "$OPTS" f
@@ -126,6 +128,7 @@
c) custom="$OPTARG";;
h) ;;
m) minwrites=true;;
+ r) rootdev="$OPTARG";;
s) size="$OPTARG";;
x) xsets=true
selected_sets="$selected_sets $xsets"
Home |
Main Index |
Thread Index |
Old Index