Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Oct 2004 07:48:38 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        spam maps <spamrefuse@yahoo.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: 5.3Beta7: creating linker.hints for diskless boot; how?
Message-ID:  <20041014144838.GA26684@odin.ac.hmc.edu>
In-Reply-To: <20041014055832.51377.qmail@web54003.mail.yahoo.com>
References:  <20041014055832.51377.qmail@web54003.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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):

---<cut>---
#!/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
---<cut>---

-- 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041014144838.GA26684>