[klibc] [PATCH] gen_init_cpio uses external file list
Thayne Harbaugh
tharbaugh at lnxi.com
Thu Sep 16 17:11:12 PDT 2004
(Apologies to klibc at zytor.com for the re-send)
This patch makes gen_init_cpio generate the initramfs_data.cpio from a
file which contains a list of entries: file, dir, nod. I swapped the
order of filename/location for the file arguments so that it would be
more uniform with the dir and nod tyes.
[thayne at torch linux-2.6.8]$ usr/gen_init_cpio --help
ERROR: unable to open '--help': No such file or directory
Usage:
usr/gen_init_cpio <cpio_list>
<cpio_list> is a file containing newline separated entries that
describe the files to be included in the initramfs archive:
file <name> <location> <mode> <uid> <gid>
dir <name> <mode> <uid> <gid>
nod <name> <mode> <uid> <gid> <dev_type> <maj> <min>
<name> name of the file/dir/nod in the archive
<location> location of the file in the current filesystem
<mode> mode/permissions of the file
<uid> user id (0=root)
<gid> group id (0=root)
<dev_type> device type (b=block, c=character)
<maj> major number of nod
<min> minor number of nod
example:
dir /dev 0755 0 0
nod /dev/console 0600 0 0 c 5 1
dir /root 0700 0 0
dir /sbin 0755 0 0
file /sbin/kinit /usr/src/klibc/kinit/kinit 0755 0 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpio_list.patch
Type: text/x-patch
Size: 8770 bytes
Desc:
Url : http://www.zytor.com/pipermail/klibc/attachments/20040916/0afab5b4/cpio_list.bin
More information about the klibc
mailing list