[Fedora-livecd-list] Development of biarch live CD script.

Richard Shaw hobbes1069 at gmail.com
Fri Aug 20 20:30:54 UTC 2010


On Fri, Aug 20, 2010 at 10:05 AM, Jasper Hartline
<jasper.hartline at gmail.com> 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


More information about the livecd mailing list