[PATCH] olpc.fth - grow the root filesystem partition on boot

James Cameron quozl at laptop.org
Fri Mar 16 23:03:14 EDT 2012

On Sat, Mar 17, 2012 at 10:58:05AM +1100, James Cameron wrote:
> On Fri, Mar 16, 2012 at 11:58:51AM -0600, Daniel Drake wrote:
> In OpenFirmware, we might either:
>  * do the resize only if the .zd file requests it, (a new ''resize:''
>    line after ''zblocks-end:''), or

This has been written and tested locally.  The patch is attached for

> Adding resize: to the end of an .zd file does not cause any error on the
> current version of OpenFirmware on XO-1.75, so it can be added now:

I was wrong about this ... in that the zblocks-end: causes the file to
be closed, so the resize: won't be seen in that position.  If it is added
above the zblocks-end: a warning occurs, but the fs-update does complete.

Attached is a revised patch, which places the resize: before
zblocks-end: with a wrapper to prevent warning.  This allows the resize:
request to be added to olpc-os-builder without requiring OpenFirmware

James Cameron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fs-update-11690.patch
Type: text/x-diff
Size: 2577 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20120317/a960379c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-root-partition-resize-after-fs-update-11690.patch
Type: text/x-diff
Size: 1193 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20120317/a960379c/attachment-0001.patch>

More information about the Devel mailing list