| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: install.md,v 1.32 2021/02/25 21:46:55 rin Exp $ | | 1 | # $NetBSD: install.md,v 1.33 2021/06/26 00:28:19 tsutsui Exp $ |
2 | # | | 2 | # |
3 | # | | 3 | # |
4 | # Copyright (c) 1996,2006 The NetBSD Foundation, Inc. | | 4 | # Copyright (c) 1996,2006 The NetBSD Foundation, Inc. |
5 | # All rights reserved. | | 5 | # All rights reserved. |
6 | # | | 6 | # |
7 | # This code is derived from software contributed to The NetBSD Foundation | | 7 | # This code is derived from software contributed to The NetBSD Foundation |
8 | # by Jason R. Thorpe. | | 8 | # by Jason R. Thorpe. |
9 | # | | 9 | # |
10 | # Redistribution and use in source and binary forms, with or without | | 10 | # Redistribution and use in source and binary forms, with or without |
11 | # modification, are permitted provided that the following conditions | | 11 | # modification, are permitted provided that the following conditions |
12 | # are met: | | 12 | # are met: |
13 | # 1. Redistributions of source code must retain the above copyright | | 13 | # 1. Redistributions of source code must retain the above copyright |
14 | # notice, this list of conditions and the following disclaimer. | | 14 | # notice, this list of conditions and the following disclaimer. |
| @@ -40,27 +40,26 @@ md_set_term() { | | | @@ -40,27 +40,26 @@ md_set_term() { |
40 | if [ ! -z "$TERM" ]; then | | 40 | if [ ! -z "$TERM" ]; then |
41 | return | | 41 | return |
42 | fi | | 42 | fi |
43 | echo -n "Specify terminal type [vt220]: " | | 43 | echo -n "Specify terminal type [vt220]: " |
44 | getresp "vt220" | | 44 | getresp "vt220" |
45 | TERM="$resp" | | 45 | TERM="$resp" |
46 | export TERM | | 46 | export TERM |
47 | } | | 47 | } |
48 | | | 48 | |
49 | md_makerootwritable() { | | 49 | md_makerootwritable() { |
50 | # Mount root rw for convenience of the tester ;-) | | 50 | # Mount root rw for convenience of the tester ;-) |
51 | if ! cp /dev/null /tmp/.root_writable >/dev/null 2>&1; then | | 51 | if ! cp /dev/null /tmp/.root_writable >/dev/null 2>&1; then |
52 | mi_mount_kernfs | | 52 | mi_mount_kernfs |
53 | # XXX: Use /kern/rootdev instead? | | | |
54 | mount -t ffs -u /kern/rootdev / > /dev/null 2>&1 | | 53 | mount -t ffs -u /kern/rootdev / > /dev/null 2>&1 |
55 | fi | | 54 | fi |
56 | } | | 55 | } |
57 | | | 56 | |
58 | md_get_diskdevs() { | | 57 | md_get_diskdevs() { |
59 | # return available disk devices | | 58 | # return available disk devices |
60 | mi_mount_kernfs | | 59 | mi_mount_kernfs |
61 | mi_filter_msgbuf | sed -ne '/^[sw]d[0-9] /s/ .*//p' | | 60 | mi_filter_msgbuf | sed -ne '/^[sw]d[0-9] /s/ .*//p' |
62 | } | | 61 | } |
63 | | | 62 | |
64 | md_get_cddevs() { | | 63 | md_get_cddevs() { |
65 | # return available CDROM devices | | 64 | # return available CDROM devices |
66 | mi_mount_kernfs | | 65 | mi_mount_kernfs |