On Tue, 2003-12-09 at 18:55, Patrick Devine wrote: > I've added a file system before to 7.x by using libparted, but I'm > wondering if there's an easier way of changing code only in fsset.py so as > to not have to go to all of the trouble. I really don't need to format > the device or anything like that, just partition it with a particular > partition id type. [snip] > Normally I'd set self.partedFileSystemType to > parted.file_system_type_get("test") or whatever I'd set up in libparted, > but shouldn't there be a way of just setting it to "0xff" or whatever? parted doesn't really deal in the idea of a "partition id" as is commonly used to identify filesystems on MS-DOS partition tables. Instead, it actually sniffs the data of the filesystem to determine what the fstype is. There's not really a way exported from libparted (and thus, in the bindings) to set just a partition id. If you really want to do it, you can look at the RHEL3/Fedora Core 1/rawhide anaconda at the prepbootFilesystem class. It works, but is definitely a hack :) Cheers, Jeremy