Re: Patch for sysinstall wrong-disc problem

From: John Baldwin (jhb_at_FreeBSD.org)
Date: 06/27/05

  • Next message: John Baldwin: "Re: Patch for sysinstall wrong-disc problem"
    To: freebsd-current@freebsd.org
    Date: Mon, 27 Jun 2005 17:01:43 -0400
    
    

    On Saturday 18 June 2005 08:33 pm, Doug White wrote:
    > Hey folks,
    >
    > I've come up with a patch that fixes sysinstall prompting for the wrong CD
    > when trying to install packages from non-CDROM media. Patch is here:
    >
    > http://people.freebsd.org/~dwhite/patches/index.c.20050618.patch
    >
    > This makes the "This is disc#0; I need disc#1" type message go away by
    > checking if the install media is a CDROM first. Tested with an install
    > over NFS, but it shouldn't make a difference what install media as long as
    > its not a CD.
    >
    > I'll commit this shortly if there are no objections.

    Just a suggestion: it might be a shorter patch with no need to reindent a
    bunch of code if you change the patch to just add

            if (mediaDevice->type != DEVICE_TYPE_CDROM)
                    return (DITEM_FAILURE);

    before the while loop.

    -- 
    John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
    "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: John Baldwin: "Re: Patch for sysinstall wrong-disc problem"

    Relevant Pages

    • Re: Patch for sysinstall wrong-disc problem
      ... > I've come up with a patch that fixes sysinstall prompting for the wrong CD ... > checking if the install media is a CDROM first. ...
      (freebsd-current)
    • Re: Patch for sysinstall wrong-disc problem
      ... >> I've come up with a patch that fixes sysinstall prompting for the wrong CD ... >> checking if the install media is a CDROM first. ... >> I'll commit this shortly if there are no objections. ...
      (freebsd-current)
    • Re: Patch for sysinstall wrong-disc problem
      ... >> I've come up with a patch that fixes sysinstall prompting for the wrong CD ... >> checking if the install media is a CDROM first. ... >> I'll commit this shortly if there are no objections. ...
      (freebsd-current)
    • ~/.hosts patch
      ... Hey folks, got an interesting patch. ... One suggestion that was made was to make it an nss module so that it could be controlled by the admin. ... It probably could use some cleanup as well, just putting it out here for proof of concept for now, and some direction. ...
      (freebsd-current)