initrd: read file from flash
Martin Langhoff
martin.langhoff at gmail.com
Tue Mar 9 15:54:18 EST 2010
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).
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.
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
More information about the Devel
mailing list