#11690 NORM 12.1.0: OFW should size root partition to fill the disk

Zarro Boogs per Child bugtracker at laptop.org
Sun Mar 11 19:52:44 EDT 2012


#11690: OFW should size root partition to fill the disk
-----------------------------------+----------------------------------------
           Reporter:  pgf          |       Owner:  Quozl        
               Type:  enhancement  |      Status:  assigned     
           Priority:  normal       |   Milestone:  12.1.0       
          Component:  kernel       |     Version:  not specified
         Resolution:               |    Keywords:               
        Next_action:  design       |    Verified:  0            
Deployment_affected:               |   Blockedby:               
           Blocking:  10040        |  
-----------------------------------+----------------------------------------
Changes (by Quozl):

  * status:  new => assigned
  * next_action:  never set => design
  * component:  not assigned => kernel


Comment:

 the partition table is created by olpc-os-builder, not by openfirmware.
 during ''fs-update'', openfirmware writes the blocks that olpc-os-builder
 provides.

 openfirmware could be programmed to enlarge the last partition to fill all
 remaining space, or this could be done by the .zd file as a postscript
 after ''zblocks-end:'' ... but this would break ''fs-verify'', unless we
 compensated by complicating ''fs-verify''.  ''fs-update'' and ''fs-
 verify'' are used in factory for testing, so i'm not keen to complicate
 them further.

 instead, the partition size should be changed on first-boot, by whatever
 it is that openfirmware boots.  you say linux can't use the new size in
 that boot ... (which smells like a small matter of programming, but never
 mind) ... that leaves kernel.git:olpc/olpc.fth which could
  * detect the first-boot condition, (absence of /bootpart/.olpc.resized)
  * change the partition table, and
  * cancel whatever condition indicates first-boot (create file).

 what do you think?

 (changing component to kernel, since olpc/olpc.fth is maintained in our
 kernel component, even though it is written in forth).

-- 
Ticket URL: <http://dev.laptop.org/ticket/11690#comment:1>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list