Subject: install/22061: sysinst does not mount target if 'b. Use Existing' is selected
To: None <gnats-bugs@gnats.netbsd.org>
From: None <makoto@ki.nu>
List: netbsd-bugs
Date: 07/05/2003 22:26:13
>Number:         22061
>Category:       install
>Synopsis:       sysinst does not mount target file system if 'b. Use Existing' selected
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 05 13:27:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Makoto Fujiwara
>Release:        NetBSD 1.6U (20030621)
>Organization:
KINU Corporation
>Environment:
	
	
        (not installed yet)
         macppc, Open Firmware 2.0.2 (StarMax 3000/G3/300)
Architecture: powerpc
Machine: macppc
>Description:
 At installation from netbsd-GENERIC_MD.gz,
 with Existing disklabel used, and say ftp is selected as a media,
 getting files via ftp will be stored on memory disk and getting 
 file system full. It turned out that no target file system is 
 mounted. If 'a: Standard' is selected instead, the installation
 goes smoothly.

>How-To-Repeat:
For example, use netbsd-GENERIC_MD.gz from releng.netbsd.org
with current/200306210000 version (macppc in my case),

and say 'Use existing' at partion customization, 
(of course you need existing partition, and in my case, I made
the partition by the same version sysinst run beforehand),

  +--------------------------+
  | Choose your installation |
  |                          |
  |>a: Standard              |
  | b: Use Existing          |
  +--------------------------+

you will get  following:

| /: file system full--------------------------------------------------
| Using binary mode to transfer files.
| 200 Type set to I.
| 250 CWD command successful.
| ....
| 250 CWD command successful.
| local: kern-GENERIC.tgz remote: kern-GENERIC.tgz 
| 229 Entering Extended Passive Mode (|||55053|)
| 150 Opening BINARY mode data connection for 'kern-GENERIC.tgz' (2191577 bytes).
|   7% |**                                   |   162 KB   20.32 KB/s    01:37 ETA
| /: write failed, file system is full
| ftp: local: kern-GENERIC.tgz: No space left on device

And it turned out nothing is mounted, and ftp will write to 
memory disk as /mnt/usr/INSTALL.
---------------------------------------------------------------
# df
Filesystem  512-blocks     Used     Avail Capacity  Mounted on
/dev/md0a         3959     3959         0   100%    /
mfs:14           15646        2     14860     0%    /tmp
# ls /mnt/usr/INSTALL
kern-GENERIC.tgz
# 
---------------------------------------------------------------
>Fix:
src/distrib/utils/sysinst/disks.c revision 1.60 may be making this 
problem. I have no good idea at this moment.

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