[anaconda+blivet] Validate things for LVM, v2

David Shea dshea at redhat.com
Mon May 19 18:22:26 UTC 2014


This version is a compromise between the LVM-specific thing I had before and
dlehman's suggestion to apply it to everything, since 1) yeah it'd be nice to
make it generic for when it turns out that the same thing applies to btrfs or
whatever, but 2) LVM is crazy. safeDeviceName is modified to sanitize names
that would be foridden for VGs since rejecting ".." or "-root" isn't terribly
offensive, but the parts where you can't create a device named "snapshot47" are
buried down in the lvmlv subclass of blivet.devices.Device.

On the anaconda side, switched the container name validation to check that
the name input by the user is not modified when run through safeDeviceName.


More information about the anaconda-patches mailing list