On Fri, Aug 20, 2010 at 2:51 PM, Richard Shaw <[email protected]> wrote:
>> 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() Ok. I've updated the partition function: http://autopsy.liveprojects.info/scripts/mkbiarch.py Including updating the copy function in case we pass it a file or a directory. 5 minutes ago I would have said what else I changed, which made sense.. Now I'm at a loss for words. I'll keep working on it. -- livecd mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/livecd
