On Fri, 04 Sep 2009 10:34:40 +0200
[email protected] wrote:

> 
> > I've refreshed the patches to work with current trunk (as the old
> > patches were no longer applying cleanly due to recent changes).
> > There are also a couple of minor functional changes some of which
> > make the usb root stuff I'm working on easier.
> >
> 
> Do you plan to overlay the internal flash?

The usb root I was doing was going to be instead of the flash.  The
reason for that is that I think that try to do double duty with the
flash won't work well.  (That is trying to have a flash that works
perfectly well on it's own, but can use the usb if present).  At least
not with a great deal of invasive changes.

The way I do it do use the same basic boot method as for a flash
filesystem, and just do the necessary things to make up for the
differences between to two types of media.  I can do that because I
have modularized the preinit/mount_root/firstboot scripts and subsitute
usb boot stuff where appropriate, without changing the parts than can
stay the same.

The main differences is that instead of a DEADC0DE marker that part of
the flash, to indicate that the rootfs needs formatting etc, I store a
UUID in the squashfs, and format the usb and copy files if the
squashfs uuid differs from the uuid on the rootfs.

There are other ways the a usb root could be done but they would
involve a much greater degree of change from the way things work now.

You can't just pivot_root because in rc.d (which is one solution on the
wiki) because then your /etc is limited to what is left on the flash
after the firmware takes up space.

Felix is talking about an aufs solution, but you'd have to ask him
about that, and I'm not sure what his timeline is (I suspect it
wouldn't be as soon, so my solution could be viewed as an at least
interim solution).

-- 
And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C      http://gnupg.org
The C Shore (Daniel Dickinson's Website) http://cshore.is-a-geek.com

Attachment: signature.asc
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to