From owner-freebsd-bugs Mon May 25 13:05:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA25042 for freebsd-bugs-outgoing; Mon, 25 May 1998 13:05:19 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA25033 for ; Mon, 25 May 1998 13:05:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA03372; Mon, 25 May 1998 13:00:01 -0700 (PDT) Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA25008 for ; Mon, 25 May 1998 13:04:49 -0700 (PDT) (envelope-from seggers@semyam.dinoco.de) Received: (from uucp@localhost) by tim.xenologics.com (8.8.5/8.8.8) with UUCP id WAA14686 for FreeBSD-gnats-submit@freebsd.org; Mon, 25 May 1998 22:00:17 +0200 (MET DST) Received: (from seggers@localhost) by semyam.dinoco.de (8.8.8/8.8.8) id VAA02393; Mon, 25 May 1998 21:58:33 +0200 (CEST) (envelope-from seggers) Message-Id: <199805251958.VAA02393@semyam.dinoco.de> Date: Mon, 25 May 1998 21:58:33 +0200 (CEST) From: Stefan Eggers Reply-To: seggers@semyam.dinoco.de To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: seggers@semyam.dinoco.de X-Send-Pr-Version: 3.2 Subject: misc/6752: sysinstall w/o cd9660 fs loaded can't mount CD Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6752 >Category: misc >Synopsis: sysinstall w/o cd9660 fs loaded can't mount CD >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 25 13:00:00 PDT 1998 >Last-Modified: >Originator: Stefan Eggers >Organization: none >Release: FreeBSD 2.2.6-STABLE i386 >Environment: I use a kernel w/o cd9660 fs built in and it doesn't get loaded on system startup - the first mount of a CD-ROM will have to load it. The kernel is pretty much GENERIC with unnecessary stuff removed. >Description: When the cd9660 LKM is not loaded and it is not compiled into the kernel sysinstall can't mount the CD-ROM. >How-To-Repeat: Make a kernel w/o cd9660 fs and make sure the cd9660 fs module is not loaded. Now start sysinstall and try to install some package from CD-ROM. >Fix: This fix I made for 2.2-stable from about a week ago - about May 17. I copied the code mount_cd9660 uses and added it to the relevant place in sysinstall. As I was at it I also changed mount() a little bit to be more the way mount_cd9660 is instead of the - accor- ding to the comment below the example in vfsload(3) - old way of doing it. *** cdrom.c.ORIG Wed Jan 29 02:11:22 1997 --- cdrom.c Mon May 25 21:26:42 1998 *************** *** 61,66 **** --- 61,67 ---- char *cp; Boolean readInfo = TRUE; char *mountpoint = "/dist"; + struct vfsconf *vfc; if (cdromMounted) return TRUE; *************** *** 74,80 **** Mkdir(mountpoint); ! if (mount(MOUNT_CD9660, mountpoint, MNT_RDONLY, (caddr_t) &args) == -1) { if (errno == EINVAL) { msgConfirm("The CD in your drive looks more like an Audio CD than a FreeBSD release."); return FALSE; --- 75,95 ---- Mkdir(mountpoint); ! vfc = getvfsbyname("cd9660"); ! if ((vfc == NULL) && vfsisloadable("cd9660")) { ! if (vfsload("cd9660") != 0) { ! msgConfirm("Can't load CD filesystem."); ! return FALSE; ! } ! endvfsent(); /* flush cache */ ! vfc = getvfsbyname("cd9660"); ! } ! if (vfc == NULL) ! { ! msgConfirm("CD filesystem neither in kernel nor loadable as LKM."); ! return FALSE; ! } ! if (mount(vfc->vfc_index, mountpoint, MNT_RDONLY, (caddr_t) &args) == -1) { if (errno == EINVAL) { msgConfirm("The CD in your drive looks more like an Audio CD than a FreeBSD release."); return FALSE; >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message