Solution? Re: pxe-install on FreeBSD 5.3

From: Tim Dettloff (dettloff_at_gmail.com)
Date: 10/21/04

  • Next message: Rob: "Re: 5.3b7 and ata raid1 - how?"
    Date: Thu, 21 Oct 2004 01:38:55 +0200
    To: current@freebsd.org
    
    

    After a lot of searching I think I have found the problem.

    Both sys/nfsclient/nfs_diskless.c (, bootp_subr.c) and sys/dev/md/md.c
    sets rootdevnames[0] which is used by sys/kern/vfs_mount.c to select a
    root. On 5.2.1 nfs set it first and the setting was later overwritten
    by md. I suspect that this commit
    http://lists.freebsd.org/pipermail/cvs-src/2004-March/021449.html
    changed that order, so that nfs now overwrites the md setting.
    I suggest that nfs is modified so it sets rootdevnames[1] instead of
    [0]. As far as I can see [1] this is not used for anything. That way
    md is alway tried first and then nfs.

    >Tim.

    On Wed, 20 Oct 2004 05:16:51 +0000 (UTC), Bjoern A. Zeeb
    <bzeeb-lists@lists.zabbadoz.net> wrote:
    > On Tue, 19 Oct 2004, Tim Dettloff wrote:
    >
    > Hi,
    >
    > > On 5.2.1-RELEASE i could just copy /boot from the boot-only iso to my
    > > tftp-sever, compile pxeboot with LOADER_TFTP_SUPPORT=YES and I was
    > > ready to pxeinstall.
    > >
    > > When I do the same with 5.3-RC1 the kernel wants to mount root from
    > > NFS instead of /dev/md0.
    > >
    > > What is the reason for this change?
    >
    > I don't know but I had posted a solution earlier this year. If I
    > rememeber correctly it had been setting
    > set vfs.root.mountfrom="ufs:/dev/md0c"
    > in boot/loader.rc.
    >
    >
    > > In addition it would really be nice if the iso contained a
    > > pxeboot build with LOADER_TFTP_SUPPORT=YES in addition to the
    > > standard one. I imagine it is only a couple of lines extra in the makefile..?
    >
    > +1 from me ;)
    >
    > --
    > Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
    >
    _______________________________________________
    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: Rob: "Re: 5.3b7 and ata raid1 - how?"

    Relevant Pages

    • Re: Solution? Re: pxe-install on FreeBSD 5.3
      ... >After a lot of searching I think I have found the problem. ... On 5.2.1 nfs set it first and the setting was later overwritten ... so that nfs now overwrites the md setting. ... FreeBSD committer ...
      (freebsd-current)
    • Re: block root access to NFS mount
      ... I need to give root access to an NFS client host machine, ... Often this also means that root may not even access the nfs filesystem ...
      (Fedora)
    • Re: Problem setting up NFS on Ubuntu
      ... I have installed Ubuntu ... > I used System - Administration - Synaptic Package Manager to include NFS ... Should I be using the GUI, and if so, how do I do that as root, ... and doesn't change the permissions displayed by ls -l ...
      (comp.os.linux.setup)
    • Re: Tools for FreeBSD development
      ... Most typically, the setup involves a central development server running -STABLE, with a private network link to a series of crash boxes. ... The development server NFS exports a file system to use as an NFS root and for file sharing, as well as running tftp and dhcp servers. ... Each test system has its own exported root, so I can use individual loader.conf's to tell test systems to boot off NFS, boot off local disks, etc. ...
      (freebsd-hackers)
    • Re: Tools for FreeBSD development
      ... Most typically, the setup involves a central development server running -STABLE, with a private network link to a series of crash boxes. ... The development server NFS exports a file system to use as an NFS root and for file sharing, as well as running tftp and dhcp servers. ... Each test system has its own exported root, so I can use individual loader.conf's to tell test systems to boot off NFS, boot off local disks, etc. ...
      (freebsd-questions)