From owner-freebsd-current@FreeBSD.ORG Thu Oct 14 14:47:40 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3ECE016A4CE for ; Thu, 14 Oct 2004 14:47:40 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0989843D1D for ; Thu, 14 Oct 2004 14:47:40 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id i9EEmcfJ028293; Thu, 14 Oct 2004 07:48:38 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i9EEmcO7028291; Thu, 14 Oct 2004 07:48:38 -0700 Date: Thu, 14 Oct 2004 07:48:38 -0700 From: Brooks Davis To: spam maps Message-ID: <20041014144838.GA26684@odin.ac.hmc.edu> References: <20041014055832.51377.qmail@web54003.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: <20041014055832.51377.qmail@web54003.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: freebsd-current Subject: Re: 5.3Beta7: creating linker.hints for diskless boot; how? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2004 14:47:40 -0000 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 13, 2004 at 10:58:31PM -0700, spam maps wrote: >=20 > Hello, >=20 > I have diskless bootup working for 4.X systems. > So I am familiar with the settings for 4.X. >=20 > I'm now trying to get diskless bootup set up with > 5.3-Beta7. I'm getting as far as the loading > of the kernel via tftp by the diskless PC. > When the kernel is loaded, there's a "....[done]" > and then the diskless PC is waiting for ever. >=20 > So I have still forgotten something, probably > a typical 5.X issue. >=20 > One could be that I forgot to copy the linker.hints > file, when generating the boot/kernel directory on > the master PC (I only copied the *.ko files and > the kernel). >=20 > What am I supposed to do with that file. I have no > idea what linker.hints is for. Should I let the > diskless PC generate it each time at bootup? > If so, how? If not, can I copy this file from the > master PC (is this file different for each system?) kldxref(8) in what you're looking for. I personally recommend creating diskless roots by using install targets rather then copying files around by hand. For instance the following is a script I use to create roots for testing (the ports stuff isn't necessicary of course, but I included it because it's somewhat intresting and some of the issues are non-obvious): ------ #!/bin/sh src=3D/usr/home/brooks/aero-p4/fellowship/roots/freebsd/5.2-CURRENT dest=3D/usr/diskless/5.2-CURRENT.deptest kernconf=3DNODE ports=3D/usr/ports # Rebuild the source #cd ${src} #make buildworld #make buildkernel KERNCONF=3D${kernconf} # delete the old setup #rm -rf ${dest} #chflags -R noschg ${dest} #rm -rf ${dest} # install a new world cd ${src} mkdir -p ${dest} make DESTDIR=3D${dest} installworld cd etc make DESTDIR=3D${dest} distribution cd .. make DESTDIR=3D${dest} KERNCONF=3D${kernconf} installkernel # install a copy of ports # This copy of ports is assumed to be up to date with a correct INDEX.db fi= le. cp /etc/resolv.conf ${dest}/etc/resolv.conf mount_devfs devfs ${dest}/dev #cpdup -i0 -vv /usr/ports ${dest}/usr/ports mkdir -p ${dest}/usr/ports/ rsync -av --delete --exclude=3DCVS /usr/ports/ ${dest}/usr/ports/ if [ ! -d ${dest}/var/db/pkg/portupgrade-* ]; then chroot ${dest} pkg_add -r portupgrade fi #chroot ${dest} portupgrade -a chroot ${dest} portinstall -M BATCH=3Dyes ganglia-monitor-core sge diskmark= diskprep mail/postfix mkdir -p ${dest}/usr/local/sge/default /bin/ln -fs /usr/local/sge/default/common/rcsge /usr/local/etc/rc.d/sge.sh umount ${dest}/dev rm ${dest}/etc/resolv.conf ------ -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBbpHGXY6L6fI4GtQRAsccAKDiyY8AsFBHN87Xr78Ess4M8Vc10wCePFtl QquomuWuPrNcYsMeoadSmEI= =fLUU -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--