Module Name: src
Committed By: tsutsui
Date: Sat Dec 5 18:27:39 UTC 2020
Modified Files:
src/distrib/hp300/miniroot: install.md
src/distrib/mac68k/miniroot: install.md
Log Message:
Add missing md_get_partition_range() that causes installation failure.
Also reported by Martin Trusler on testing hp300 miniroot.
Should be pulled up to netbsd-9 and netbsd-8.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/distrib/hp300/miniroot/install.md
cvs rdiff -u -r1.6 -r1.7 src/distrib/mac68k/miniroot/install.md
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/hp300/miniroot/install.md
diff -u src/distrib/hp300/miniroot/install.md:1.18 src/distrib/hp300/miniroot/install.md:1.19
--- src/distrib/hp300/miniroot/install.md:1.18 Sat Dec 5 18:16:11 2020
+++ src/distrib/hp300/miniroot/install.md Sat Dec 5 18:27:39 2020
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: install.md,v 1.18 2020/12/05 18:16:11 tsutsui Exp $
+# $NetBSD: install.md,v 1.19 2020/12/05 18:27:39 tsutsui Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -83,6 +83,11 @@ md_get_ifdevs() {
mi_filter_dmesg | awk -F : '/^le[0-9]*:/ { print $1; }' | sort -u
}
+md_get_partition_range() {
+ # return an expression describing the valid partition id's
+ echo '[a-h]'
+}
+
md_installboot() {
# $1 is the root disk
Index: src/distrib/mac68k/miniroot/install.md
diff -u src/distrib/mac68k/miniroot/install.md:1.6 src/distrib/mac68k/miniroot/install.md:1.7
--- src/distrib/mac68k/miniroot/install.md:1.6 Sat Dec 5 18:16:11 2020
+++ src/distrib/mac68k/miniroot/install.md Sat Dec 5 18:27:39 2020
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: install.md,v 1.6 2020/12/05 18:16:11 tsutsui Exp $
+# $NetBSD: install.md,v 1.7 2020/12/05 18:27:39 tsutsui Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -83,6 +83,11 @@ md_get_ifdevs() {
mi_filter_dmesg | awk -F : '/^sn[0-9]*:/ { print $1; }' | sort -u
}
+md_get_partition_range() {
+ # return an expression describing the valid partition id's
+ echo '[a-h]'
+}
+
md_installboot() {
# $1 is the root disk