initrd: read file from flash
Esteban Bordón
ebordon.uy at gmail.com
Wed Mar 10 06:12:14 EST 2010
2010/3/9 Martin Langhoff <martin.langhoff at gmail.com>
> On Tue, Mar 9, 2010 at 1:56 PM, Esteban Bordón <ebordon.uy at gmail.com>
> 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).
>
In that case I should modify bitfrost code, right?
>
> 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.
>
Could I navigate these directories as any python program
(open('/versions/boot/current/myfile', 'r')) ?
> hth,
>
>
>
> m
> --
> martin.langhoff at gmail.com
> martin at laptop.org -- School Server Architect
> - ask interesting questions
> - don't get distracted with shiny stuff - working code first
> - http://wiki.laptop.org/go/User:Martinlanghoff
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20100310/5a0fcf03/attachment.html>
More information about the Devel
mailing list