From: mitchell@mdd.comm.mot.com (Bill Mitchell) Subject: Re: Bootable RAM version of Linux Date: Thu, 2 Sep 1993 15:03:55 GMT
in comp.os.linux, I said:
>[..]
>Following is a script I recently hacked up to create a boot/root/ramdisk
>floppy starting with an installed, running linux system. It works fine
>for me, but it obviously needs fleshing out.
The script also needed, and may still need, debugging. I hadn't intended it
for publication, and just tossed it out in response to a question because I
had it handy, had found it useful, and had been using it without noticing
problems. Of course, I now notice an obvious problem when I look at what
I've posted. Fortunately, the problem doesn't have serious effects (if it
did, I'd probably have noticed them after using the script).
In the section which reads:
>mkdir /mnt/dev
>ls -l /dev | gawk '
>{
> name = $10
> major = $5
> maj_len = index(major, ",") - 1
> maj_len = 1 ####### EXPUNGE THIS LINE ######
> if (maj_len > 0)
> {
> bcu = substr($1, 1, 1)
> if (bcu == "b" || bcu == "c" || bcu == "u")
> {
> minor = $6
> printf "mknod /mnt/dev/%s %s %.*s %s\n", name, bcu, maj_len, major, minor
> }
> }
>}' | sh
Delete the line I've marked. I thought I had deleted this when I added the
line above it. Sorry. I hate it when that happens.
-- mitchell@mdd.comm.mot.com (Bill Mitchell)