On Fri, Aug 20, 2010 at 10:05 AM, Jasper Hartline
<[email protected]> wrote:
>> I'll keep banging away at it. I'm digging through the pyparted source.
>>
>> Richard
>
> Here is what I have done, put a comment in stating we need to use
> pyparted in the format() function.
>
> It is starting to get ugly in setup() where it starts
> on dirs = with the list, but I can migrate most of that to functions
> before I go further.
>
> http://autopsy.liveprojects.info/scripts/mkbiarch.py

Ok, only some slight updates:

def partition(temp_image):    # Found a way to get the sectors through pyparted
    device = parted.getDevice(temp_image)
    disk = freshDisk(device, 'msdos')
    constraint = parted.Constraint(device=device)
    geometry = parted.Geometry(device=device, start=1,
end=(constraint.maxSize-1))
    partition = parted.Partition(disk=disk, type=82, geometry=geometry)
    disk.addPartition(partition=partition, constraint=constraint)
    disk.commit()
---

I got it to work typing everything in manually...

Let me know what you think.

Richard
--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd

Reply via email to