2006-04-08T11:40:37 Lars Nielsen: > Can anyone recommend some tools or guides about how to make an > installable distribution of (B)LFS?
There's More Than One Way To Do It, to quote someone or another.
> I want to make a network enabled installation via BOOTP.
That's actually kinda orthogonal to the creation of a distro. I've
done an automated network installer for work. We used a DHCP server
publishing leases with some special sauce in 'em, that interacted
with PXE bios on the NIC to provoke it to download a pxelinux from a
tftp server; pxelinux then pulled a per-host config file and
downloaded a kernel and initrd, passing the kernel some args.
I used Busybox for the initrd, and had its rcS get a lease with
udhcpc, pull the hostname out of the lease, append that to a url
prefix found as a kernel arg (pulled it out of /proc/cmdline), and
wgot the result, piping it into a loop of the form
while read uri args;do
case "$uri" in
*.sh) wget -q -O - "$uri"|sh -sex $args;;
*.cpio.bz2) wget -q -O - "$uri"|(cd /a&&cpio -idum);;
*.rpm) chroot /a rpm -U "$uri";;
esac
done
That let me keep all the clever bits that I wanted to evolve over
time off the initrd, in fact the initrd is pretty generic.
> I think the tools im looking for are some diskmanagement tools
> [...]
I used GNU parted.
> [...] and some packagemanagement tools.
Now there's a matter of taste, indeed. Of the big-name ones, my
favourite is rpm, because I like the way it builds, as a
non-priviledged user, from virgin upstream sources with documented
origins. Last I looked, dpkg didn't do that. I've not looked closely
at the other choices, of which there are many. rpm is so complex
that I ended up deciding to create my own, which I call bpm; the
cpio stanza above would install a bpm properly.
If I'm remembering right, the LFS project you want for software
packaging would be ALFS. I just checked the ALFS page on the
website, sounds like you'll need to add some special sauce of your
own, to wrap the build scripts and download info into software
packaging specs.
-Bennett
pgpb0rkSSYaCQ.pgp
Description: PGP signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-chat FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
