From: William S. <wst...@po...> - 2000-09-27 23:18:41
|
Good day, all, For once, I'm actually _contributing_ something! *grin* Jeff had asked a while back if I could do some work on root filesystems for different distributions; as part of the uml work I'm doing, the replacement build script just naturally handles them. I've attached the build script and support function file. One of the major changes is the use of "addline", "delline" and "substline", which respectively add a line to a file, remove a line from a file, and substitute one string for another in a file. These three functions allow me to make all the changes that were originally done by Jeff's initfiles.tar, but allow me to do it in a distribution-independent way. In other words, If I know that /dev/tty0 needs to be changed to /dev/ttys/0 in rc.sysinit, I can tell the build script to make this one change, instead of having to include a complete replacement rc.sysint to overwrite what might be a completely different rc.sysinit in a new distribution. If all the RPMS= lines are uncommented, it seems to be doing pretty well at running servers, running jleu's ethernet, and even running X (get networking going, run "xhost +uml_ip_address" on the host, and run telinit 3 in uml). The X tends to be pretty flaky - it just segfaults every 30 seconds to 3 minutes, depending on load - but it does generally function. Jeff, could you take a look at this and offer suggestions? I'd really like to make this general enough that it could build any RPM-based distribution. If you have other mkrootfs scripts that you use to make other rpm root filesystems, could you email them to me so I can integrate them? Constructive criticism, suggestions, and patches are welcome from anyone, of course! Cheers, - Bill --------------------------------------------------------------------------- "If the entire earth, land and water, were covered with computers, IPv6 would allow 7x10^23 IP addresses per square meter. [...] While it was not the intention to give every molecule on the surface of the earth its own IP address, we are not that far off." -- Tannenbaum, _Computer_Networks_, 3rd Edition (Courtesy of Joseph Pingenot <ja...@ks...>) -------------------------------------------------------------------------- William Stearns (wst...@po...). Mason, Buildkernel, named2hosts, and ipfwadm2ipchains are at: http://www.pobox.com/~wstearns LinuxMonth; articles for Linux Enthusiasts! http://www.linuxmonth.com -------------------------------------------------------------------------- |