1 |
On Mon, 24 Dec 2012 13:23:16 -0800, Mark Knecht wrote: |
2 |
|
3 |
> I don't like, really don't like, the work that currently goes into |
4 |
> making my 'init thingy' work. All the Gentoo docs about creating |
5 |
> hierarchies by hand and populating them with files and then compressing |
6 |
> it. All that drives me nuts. It should be 100% automatic, and probably |
7 |
> is with the right tools which I haven't found. |
8 |
|
9 |
The right tools are included, and documented, with your kernel. Create a |
10 |
plain text config file detailing the contents of the initramfs and set |
11 |
CONFIG_INITRAMFS_SOURCE to the path top this file. That and an init |
12 |
script are all you need to have the initramfs automatically built with |
13 |
the current versions of all files when you compile your kernel. |
14 |
|
15 |
No messing around with copying files from the main filesystem or calling |
16 |
arcane incantations involving cpio, "make all" takes care of it all. |
17 |
|
18 |
-- |
19 |
Neil Bothwick |
20 |
|
21 |
COBOL: (n.) an old computer language, designed to be read and not |
22 |
run. Unfortunately, it is often run anyway. |