Re: dbootstrap now working, busybox needs serial con change.
Erik Andersen <email@example.com> writes:
> I don't think logging to /var/log/messages would work well, since we
> have no guarantee that the root filesystem is writable, and even if it
> is writable, there are lots of cases where eternal, persistent spammage
> of /var would not be nice.
> Hmm. I've been thinking about writing a micro syslogd for busybox, and I
> could have busybox just log this crap to to the syslog. Then those that
> want to see logging stuff could add something like this to /etc/init.d/rcS:
> # Setup a 256k ramdisk on /dev/ram2 and mount it over /var
> # so syslogd can log stuff...
> echo -n "Building ramdisks: "
> dd if=/dev/zero of=/dev/ram2 bs=1k count=256 > /dev/null 2>&1
> /bin/mkfs.ext2 -n30 /dev/ram2 256 > /dev/null 2>&1
> mount /dev/ram2 /var -t ext2 -o rw
> mkdir /var/log
> echo "done."
Yuck yuck yuck. Isn't there a better (simpler) way?
> Isn't mkfs.ext2 already on the boot-floppies?
>If not, the busybox version of mkfs.minix costs 9k.
We've dropped minix, I think.
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>