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

