initrd: read file from flash

Martin Langhoff martin.langhoff at
Tue Mar 9 15:54:18 EST 2010

On Tue, Mar 9, 2010 at 1:56 PM, Esteban Bordón < at> wrote:
> can I read a file located in flash card from initrd?
> if my file is in /boot I could read it from /bootpart directory?

If your file is in /security, it's easy (have a look at the code that
reads the leases, for example).

If your file is in /boot or anywhere else in what becomes the "root"
partition, you have to navigate the /versions directory and follow the
'current' symlinks.


 martin.langhoff at
 martin at -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first

More information about the Devel mailing list