Re: Squashfs 4.0 tools

From: Phillip Lougher
Date: Tue Mar 31 2009 - 21:05:47 EST


Rob Landley wrote:
On Monday 30 March 2009 19:55:24 Stephen Hemminger wrote:
I built it from cvs (imported into git), and it works okay.

I grabbed the cvs snapshot gentoo's been using, but I don't see any way to feed in a device list text file so I can create the /dev/console node root filesystems need without needing root access on the host to mknod.

genext2fs has the -D option, which takes:

/dev d 755 0 0 - - - - -
/dev/console c 640 0 0 5 1 0 0 -

gen_init_cpio takes:

dir /dev 755 0 0
nod /dev/console 660 0 0 c 5 1

Is there a squashfs option I'm missing...?


No you're unfortunately not missing an option :-) That option
doesn't exist.

But thanks for sending the email, a couple of people over the
years have asked for something like this, and you've reminded
me that this option doesn't exist in Mksquashfs...

I have thought about adding this option a couple of times, but
it has always been dropped through lack of time. Efficiently
adding the option isn't as easy as it sounds because the "fake"
device nodes have to somehow be made available to the
recursive directory scan routine that scans the source
directories for files. Adding a list of fake device
nodes which is scanned on every directory for potential inclusion
in that directory is easy, but not terribly efficient.

I'll delay the release of the 4.0 tools and see if I can
implement this option in the next day or two.

Phillip

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/