Re: adding file systems in 7.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux