Red Hat Bugzilla – Bug 484307
parted needs a flag to indicate LUKS partitions
Last modified: 2009-06-12 09:03:51 EDT
Description of problem:
This is mostly geared toward libparted.
Parted appears to be trying to get away from the hex partition type codes, using instead flags for swap, lvm, and mdraid. It seems like there should also be a flag to indicate partitions whose contents are encrypted using LUKS/dm-crypt.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a partition and encrypt is w/ LUKS
2. try to use parted to identify it's usage
libparted does not indicate that the partition is encrypted.
libparted sets a flag to indicate the partition is encrypted
This came up while I was thinking about partition clearing in anaconda. Currently, we can look at the numeric partition type codes, but the new pyparted does not seem to export this information. I was told that this is because libparted does not want people using these codes if possible.
Honestly, we should probably move away from using parted for any of this sort of stuff unless we get parted to use libblkid to do the identification. Otherwise, there are way too many weird heuristic cases that we end up having to fix in both places due to utils not doing a good job of clobbering other fs signatures.
Ok, but FWIW I am not using libblkid at all in the new storage code. I'm using the information provided by udev.
udev uses /lib/udev/vol_id which uses libblkid :)
vol_id doesn't use libblkid AFAICT
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
closing per comment 1. I know I initially agreed to do this but I think its too much of a hassle to create a flag that wont be correctly used anyway (I'm judging by the use of other flags like boot and FS specific flags that arent set or unset by the tools that handle FSs)