From 02ebd15c62ac9942d4b51aa9c0cf97459817571b Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Tue, 5 Aug 2014 15:17:38 -0500 Subject: wic: Remove unused command versioning support The default is F16 and there's no reason to change that, so remove everything else. (From OE-Core rev: e0ec12d012e568c9943614fc1190c143912180b3) Signed-off-by: Tom Zanussi Signed-off-by: Richard Purdie --- .../mic/3rdparty/pykickstart/commands/partition.py | 39 ---------------------- 1 file changed, 39 deletions(-) (limited to 'scripts/lib/mic/3rdparty/pykickstart/commands/partition.py') diff --git a/scripts/lib/mic/3rdparty/pykickstart/commands/partition.py b/scripts/lib/mic/3rdparty/pykickstart/commands/partition.py index e65e012d02..56b91aa9d9 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/commands/partition.py +++ b/scripts/lib/mic/3rdparty/pykickstart/commands/partition.py @@ -115,26 +115,6 @@ class FC4_PartData(FC3_PartData): return retval -class RHEL5_PartData(FC4_PartData): - removedKeywords = FC4_PartData.removedKeywords - removedAttrs = FC4_PartData.removedAttrs - - def __init__(self, *args, **kwargs): - FC4_PartData.__init__(self, *args, **kwargs) - self.encrypted = kwargs.get("encrypted", False) - self.passphrase = kwargs.get("passphrase", "") - - def _getArgsAsStr(self): - retval = FC4_PartData._getArgsAsStr(self) - - if self.encrypted: - retval += " --encrypted" - - if self.passphrase != "": - retval += " --passphrase=\"%s\"" % self.passphrase - - return retval - class F9_PartData(FC4_PartData): removedKeywords = FC4_PartData.removedKeywords + ["bytesPerInode"] removedAttrs = FC4_PartData.removedAttrs + ["bytesPerInode"] @@ -281,25 +261,6 @@ class FC4_Partition(FC3_Partition): op.add_option("--label", dest="label") return op -class RHEL5_Partition(FC4_Partition): - removedKeywords = FC4_Partition.removedKeywords - removedAttrs = FC4_Partition.removedAttrs - - def __init__(self, writePriority=130, *args, **kwargs): - FC4_Partition.__init__(self, writePriority, *args, **kwargs) - - def part_cb (option, opt_str, value, parser): - if value.startswith("/dev/"): - parser.values.ensure_value(option.dest, value[5:]) - else: - parser.values.ensure_value(option.dest, value) - - def _getParser(self): - op = FC4_Partition._getParser(self) - op.add_option("--encrypted", action="store_true", default=False) - op.add_option("--passphrase") - return op - class F9_Partition(FC4_Partition): removedKeywords = FC4_Partition.removedKeywords removedAttrs = FC4_Partition.removedAttrs -- cgit v1.2.3-54-g00ecf