Date: Tue, 19 Jun 2001 00:06:56 +0200 (CEST) From: Simon Nielsen <simon@nitro.dk> To: Josef Karthauser <joe@tao.org.uk> Cc: <freebsd-small@freebsd.org> Subject: Re: PicoBSD patches Message-ID: <Pine.BSF.4.33.0106182318340.356-100000@bofh.bofh> In-Reply-To: <20010618111309.D728@tao.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 18 Jun 2001, Josef Karthauser wrote: > Here's a good place. Both Luigi and I read this list. Ok, then here are the first two minor ones.. I have also thought about making patches to change rc.conf to use a /etc/default/rc.conf like in FreeBSD 4.x instead of the current one with rc.conf.local - would that be something that would be considered to be included in the main PicoBSD? I will most likely make the changes for my self in any case.. Well on to the current patches.. Btw. they are made for 4-STABLE.. The first one makes the booting process not complain if some of the /fd directorys does not exist. The secound one makes the /stand/update script only try to call kget if the /mnt/boot/kernel.conf exists. This is my first patches to FreeBSD so any comments are very welcome. The patches can also be found on http://simon.nitro.dk/patch/picobsd/ --- picobsd.orig/mfs_tree/etc/rc Tue Feb 20 04:24:30 2001 +++ picobsd/mfs_tree/etc/rc Mon Jun 18 22:06:32 2001 @@ -3,6 +3,18 @@ # WARNING !!! We overwrite this file during execution with a new rc file. # Awful things happen if this file's size is > 1024B +install_fd_dirs() { + cd /fd + + for d in etc root; do + if [ -d ${d} ]; then + cp -Rp ${d} / + fi + done + + cd / +} + stty status '^T' trap : 2 trap : 3 @@ -13,11 +25,14 @@ dev="/dev/fd0c" # trap "echo 'Reboot interrupted'; exit 1" 3 + # Copy from MFS version of the files, and then from FS version. -cd /fd; cp -Rp etc root / ; cd / +install_fd_dirs echo "Reading /etc from ${dev}..." mount -o rdonly ${dev} /fd -cd /fd; cp -Rp etc root / ; cd / ; umount /fd +install_fd_dirs +umount /fd + cd /etc #rm files to stop overwrite warning for i in *; do Number two : --- picobsd.orig/mfs_tree/stand/update Thu Nov 30 23:55:08 2000 +++ picobsd/mfs_tree/stand/update Sun Jun 17 20:58:04 2001 @@ -32,8 +32,10 @@ done fi echo " Done." -echo -n "Updating kernel parameters... " -kget /mnt/boot/kernel.conf +if [ -r /mnt/boot/kernel.conf ]; then + echo -n "Updating kernel parameters... " + kget /mnt/boot/kernel.conf +fi umount /mnt cd ${pwd} echo " Done." Simon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0106182318340.356-100000>