From rodrigue.vincent@courrier.uqam.ca  Wed Sep 17 07:52:15 2003
Return-Path: <rodrigue.vincent@courrier.uqam.ca>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4338316A518
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Sep 2003 07:52:14 -0700 (PDT)
Received: from uqam.ca (anis.telecom.uqam.ca [132.208.250.6])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DB88243F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Sep 2003 07:52:12 -0700 (PDT)
	(envelope-from rodrigue.vincent@courrier.uqam.ca)
Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6])
	by sortant.uqam.ca (8.12.9/8.12.1) with SMTP id h8HEaO8Q004448
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Sep 2003 10:36:33 -0400 (EDT)
Received: from antivirus.uqam.ca ([127.0.0.1])
 by anis.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id M2003091710324906616
 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Sep 2003 10:33:08 -0400
Received: from courriel.sitel.uqam.ca (courriel.sitel.uqam.ca [132.208.250.8])
	by intrant.uqam.ca (8.12.9/8.12.2/uqam-filtres) with ESMTP id h8HEIDYT015255
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Sep 2003 10:18:13 -0400 (EDT)
Received: from sitel.uqam.ca (localhost [127.0.0.1]) by
          courriel.sitel.uqam.ca (Netscape Messaging Server 4.15) with
          ESMTP id HLD3QC00.S3F for <FreeBSD-gnats-submit@freebsd.org>;
          Wed, 17 Sep 2003 10:18:12 -0400 
Message-Id: <c3559c2f31.c2f31c3559@sitel.uqam.ca>
Date: Wed, 17 Sep 2003 10:18:12 -0400
From: "Vincent Rodrigue" <rodrigue.vincent@courrier.uqam.ca>
To: FreeBSD-gnats-submit@freebsd.org
Subject: sw-bug: Floppy install error

>Number:         56952
>Category:       bin
>Synopsis:       [sysinstall] floppy install error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    re
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 17 08:00:37 PDT 2003
>Closed-Date:    Thu Feb 22 20:53:51 GMT 2007
>Last-Modified:  Thu Feb 22 20:53:51 GMT 2007
>Originator:     DrVince
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
None

>Environment:

System: FreeBSD Devon.ath.cx 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sun

Aug 31 13:03:47 EDT 2003 root@Devon.ath.cx:/usr/obj/usr/src/sys/vincey i386



>Description:

When installing from floppies in 5.x, if the media is CD/DVD, at 

commit time it will complain that it cannot mount the CD/DVD cuz 

there's no /dist



>How-To-Repeat:

Make kern.flp, mfsroot.flp and ISO from current

Boot the floppies

Configure an installation with CD/DVD as media

Commit



>Fix:

In src/release/Makefile

line 669: mkdir -p etc/defaults dev mnt stand/etc/defaults stand/help

Add dist so to make it:

line 669: mkdir -p etc/defaults dev mnt stand/etc/defaults stand/help dist

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->re 
Responsible-Changed-By: roam 
Responsible-Changed-When: Wed Sep 17 08:29:33 PDT 2003 
Responsible-Changed-Why:  

Does src/release fall in the release engineering team's realm? 
If so, the following trivial patch might be of interest... 

Index: src/release/Makefile 
=================================================================== 
RCS file: /home/ncvs/src/release/Makefile,v 
retrieving revision 1.818 
diff -u -r1.818 Makefile 
--- src/release/Makefile	11 Aug 2003 04:21:58 -0000	1.818 
+++ src/release/Makefile	17 Sep 2003 15:27:49 -0000 
@@ -665,7 +665,7 @@ 
rm -rf ${RD}/mfsfd 
mkdir ${RD}/mfsfd 
cd ${RD}/mfsfd &&  
-		mkdir -p etc/defaults dev mnt stand/etc/defaults stand/help 
+		mkdir -p etc/defaults dev dist mnt stand/etc/defaults stand/help 
@cd ${.CURDIR} && $(MAKE) installCRUNCH CRUNCH=boot  
DIR=${RD}/mfsfd/stand ZIP=false 
( cd ${RD}/mfsfd &&  

http://www.freebsd.org/cgi/query-pr.cgi?pr=56952 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/56952: commit references a PR
Date: Thu, 22 Feb 2007 20:30:09 +0000 (UTC)

 kensmith    2007-02-22 20:29:53 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/sysinstall  cdrom.c 
   Log:
   If floppies are used to boot the machine, the user lets the machine
   complete the boot and enter into sysinstall, and only then inserts
   a CD into the CDROM drive and tries to select that as the install
   media the first call to mount(2) generates EIO but the second call
   to mount(2) will succeed.  This was 100% reproducible on 6.2-RELEASE,
   RELENG_6, and HEAD.  If the user inserts the disc into the CDROM
   while the machine is booting off the floppies the first call to mount(2)
   succeeds with no problems.  The problem was originally reported in
   PR #56952 against 5.1-CURRENT so it's been there for a while now.
   
   PR:             bin/56952
   MFC after:      2 weeks
   
   Revision  Changes    Path
   1.55      +6 -1      src/usr.sbin/sysinstall/cdrom.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: kensmith 
State-Changed-When: Thu Feb 22 20:43:53 UTC 2007 
State-Changed-Why:  

It turns out that /dist not being in the mfsroot was not the problem. 
Before attempting the mount sysinstall created /dist on its own. 
Sysinstall's message it printed at the point of failure indicated 
the error being returned was EIO, which is something different than 
either the device or the target directory not existing. 

While investigating further I found that sysinstall immediately 
offered the chance to reconfigure the install media, and if you 
used that to again select the CD for the install media it worked 
that second time.  I also found that if you inserted the disc 
into the drive before the kernel started to boot it worked the 
first time.  You only get the EIO error if you let the machine 
complete its boot off the floppies and get into sysinstall before 
you insert the disc into the CDROM drive. 

Revision 1.55 of usr.sbin/sysinstall/cdrom.c seems to take care 
of the problem at least as far as sysinstall is concerned.  I 
wasn't able to reproduce this problem in any other scenario I 
tried - it's just in a "floppy booted sysinstall" environment 
that this seems to crop up. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=56952 
>Unformatted:
