Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib Add missing md_get_partition_range() that causes ins...



details:   https://anonhg.NetBSD.org/src/rev/9ff864717b33
branches:  trunk
changeset: 978839:9ff864717b33
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Dec 05 18:27:39 2020 +0000

description:
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.

diffstat:

 distrib/hp300/miniroot/install.md  |  7 ++++++-
 distrib/mac68k/miniroot/install.md |  7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r 3b35c08b1a8a -r 9ff864717b33 distrib/hp300/miniroot/install.md
--- a/distrib/hp300/miniroot/install.md Sat Dec 05 18:24:10 2020 +0000
+++ b/distrib/hp300/miniroot/install.md Sat Dec 05 18:27:39 2020 +0000
@@ -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 @@
        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
 
diff -r 3b35c08b1a8a -r 9ff864717b33 distrib/mac68k/miniroot/install.md
--- a/distrib/mac68k/miniroot/install.md        Sat Dec 05 18:24:10 2020 +0000
+++ b/distrib/mac68k/miniroot/install.md        Sat Dec 05 18:27:39 2020 +0000
@@ -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 @@
        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
 



Home | Main Index | Thread Index | Old Index