Subject: install/11634: inconsistent test and error message in sysinst when looking for distrib sets
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wayber@rcn.com>
List: netbsd-bugs
Date: 12/04/2000 17:00:16
>Number:         11634
>Category:       install
>Synopsis:       inconsistent test and error message in sysinst when looking for distrib sets
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 04 17:00:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Wayne Berke
>Release:        1.4.3
>Organization:
Wayber, Inc.
>Environment:
NetBSD home 1.4.3 NetBSD 1.4.3 (WAYNE) #0: Fri Dec  1 10:46:06 EST 2000     root@home:/usr/local/usr.src/sys/arch/i386/compile/WAYNE i386

>Description:
When sysinst tries to access the distribution sets, it looks for the
files etc.tgz and kern.tgz but when it fails the error message is

"... does not contain the mandatory installation sets base.tgz and
kern.tgz."

This can be very confusing to someone (me) who is trying to install
sets minus etc.tgz.
>How-To-Repeat:
Remove etc.tgz from your distribution directory and try to load it from
sysinst.
>Fix:
In the following patch (from current sources), I assume we want to
check all three files or croak.  Pardon my French!

*** distrib/utils/sysinst/util.c.orig   Mon Dec  4 19:36:01 2000
--- distrib/utils/sysinst/util.c        Mon Dec  4 19:38:00 2000
***************
*** 109,114 ****
--- 109,117 ----
        snprintf(buf, STRSIZE, "%s/%s", path, "etc.tgz");
        result = result && file_exists_p(buf);
  
+       snprintf(buf, STRSIZE, "%s/%s", path, "base.tgz");
+       result = result && file_exists_p(buf);
+ 
        return(result);
  }
  
*** distrib/utils/sysinst/msg.mi.en.orig        Mon Dec  4 19:37:01 2000
--- distrib/utils/sysinst/msg.mi.en     Mon Dec  4 19:38:43 2000
***************
*** 458,464 ****
  
  message badsetdir
  {%s does not contain the mandatory installation sets
! base.tgz and kern.tgz.  Are you sure you've got the right directory?}
  
  message nonet
  {I can not find any network interfaces for use by NetBSD.  You will be
--- 458,464 ----
  
  message badsetdir
  {%s does not contain the mandatory installation sets
! base.tgz, etc.tgz, and kern.tgz.  Are you sure you've got the right directory?}
  
  message nonet
  {I can not find any network interfaces for use by NetBSD.  You will be
*** distrib/utils/sysinst/msg.mi.fr.orig        Mon Dec  4 19:37:24 2000
--- distrib/utils/sysinst/msg.mi.fr     Mon Dec  4 19:39:06 2000
***************
*** 454,460 ****
  {%s n'est pas un répertoire}
  
  message badsetdir
! {%s ne contient pas les composants indispensables base.tgz et kern.tgz.
  Etes-vous sur que c'est le bon répertoire ?}
  
  message nonet
--- 454,460 ----
  {%s n'est pas un répertoire}
  
  message badsetdir
! {%s ne contient pas les composants indispensables base.tgz, etc.tgz, et kern.tgz.
  Etes-vous sur que c'est le bon répertoire ?}
  
  message nonet

>Release-Note:
>Audit-Trail:
>Unformatted: