Source-Changes-HG archive

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

[src/trunk]: src/distrib/miniroot allow installing sets from already-mounted ...



details:   https://anonhg.NetBSD.org/src/rev/7ddd014c2aba
branches:  trunk
changeset: 474109:7ddd014c2aba
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jun 28 07:59:39 1999 +0000

description:
allow installing sets from already-mounted directory.  fixes PR#6313

diffstat:

 distrib/miniroot/install.sub |  28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r 9aee574cc172 -r 7ddd014c2aba distrib/miniroot/install.sub
--- a/distrib/miniroot/install.sub      Mon Jun 28 07:56:56 1999 +0000
+++ b/distrib/miniroot/install.sub      Mon Jun 28 07:59:39 1999 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: install.sub,v 1.29 1999/06/27 12:55:58 mrg Exp $
+#      $NetBSD: install.sub,v 1.30 1999/06/28 07:59:39 mrg Exp $
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1054,10 +1054,34 @@
 
        cat << \__install_disk_1
 
+Ok, lets install from a disk.  The file-system the install sets on may
+already mounted, or we might have to mount the filesystem to get to it.
+
+__install_disk_1
+
+       echo -n "Is the file-system with the install sets already mounted? [n] "
+       getresp "n"
+       case $resp in
+       y*|Y*)
+               echo "What mount point are the sets located in? [] "
+               getresp ""
+               if [ -d "$resp" ]; then
+                       install_from_mounted_fs $resp
+               else
+                       echo "$resp: Not a directory, aborting..."
+               fi
+               return
+               ;;
+       *)
+               ;;
+       esac
+
+       cat << \__install_disk_2
+
 The following disk devices are installed on your system; please select
 the disk device containing the partition with the installation sets:
 
-__install_disk_1
+__install_disk_2
        _DKDEVS=`md_get_diskdevs`
        echo    "$_DKDEVS"
        echo    ""



Home | Main Index | Thread Index | Old Index