Ok, here's where I am with pyparted:
# python
Python 2.6.4 (r264:75706, Jun 4 2010, 18:20:31)
[GCC 4.4.4 20100503 (Red Hat 4.4.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import parted
>>> device = parted.Device("/root/disk_test.img")
>>> disk = parted.freshDisk(device, 'msdos')
>>>
There's no reference to the "freshDisk" method that I could find the
the parted module. I found it by downloading the source for anaconda
and digging through the code.
Now we have a disk image with a blank msdos partition table. Now we
need to add the primary partition.
Richard
--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd