diff options
Diffstat (limited to 'scripts/lib/mic/3rdparty/pykickstart/commands')
-rw-r--r-- | scripts/lib/mic/3rdparty/pykickstart/commands/bootloader.py | 49 | ||||
-rw-r--r-- | scripts/lib/mic/3rdparty/pykickstart/commands/partition.py | 39 |
2 files changed, 0 insertions, 88 deletions
diff --git a/scripts/lib/mic/3rdparty/pykickstart/commands/bootloader.py b/scripts/lib/mic/3rdparty/pykickstart/commands/bootloader.py index b227fac3be..c2b552f689 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/commands/bootloader.py +++ b/scripts/lib/mic/3rdparty/pykickstart/commands/bootloader.py | |||
@@ -214,52 +214,3 @@ class F15_Bootloader(F14_Bootloader): | |||
214 | op.add_option("--iscrypted", dest="isCrypted", action="store_true", default=False) | 214 | op.add_option("--iscrypted", dest="isCrypted", action="store_true", default=False) |
215 | op.add_option("--md5pass", action="callback", callback=password_cb, nargs=1, type="string") | 215 | op.add_option("--md5pass", action="callback", callback=password_cb, nargs=1, type="string") |
216 | return op | 216 | return op |
217 | |||
218 | class RHEL5_Bootloader(FC4_Bootloader): | ||
219 | removedKeywords = FC4_Bootloader.removedKeywords | ||
220 | removedAttrs = FC4_Bootloader.removedAttrs | ||
221 | |||
222 | def __init__(self, writePriority=10, *args, **kwargs): | ||
223 | FC4_Bootloader.__init__(self, writePriority, *args, **kwargs) | ||
224 | |||
225 | self.hvArgs = kwargs.get("hvArgs", "") | ||
226 | |||
227 | def _getArgsAsStr(self): | ||
228 | ret = FC4_Bootloader._getArgsAsStr(self) | ||
229 | |||
230 | if self.hvArgs: | ||
231 | ret += " --hvargs=\"%s\"" %(self.hvArgs,) | ||
232 | |||
233 | return ret | ||
234 | |||
235 | def _getParser(self): | ||
236 | op = FC4_Bootloader._getParser(self) | ||
237 | op.add_option("--hvargs", dest="hvArgs", type="string") | ||
238 | return op | ||
239 | |||
240 | class RHEL6_Bootloader(F12_Bootloader): | ||
241 | removedKeywords = F12_Bootloader.removedKeywords | ||
242 | removedAttrs = F12_Bootloader.removedAttrs | ||
243 | |||
244 | def __init__(self, writePriority=10, *args, **kwargs): | ||
245 | F12_Bootloader.__init__(self, writePriority, *args, **kwargs) | ||
246 | |||
247 | self.isCrypted = kwargs.get("isCrypted", False) | ||
248 | |||
249 | def _getArgsAsStr(self): | ||
250 | ret = F12_Bootloader._getArgsAsStr(self) | ||
251 | |||
252 | if self.isCrypted: | ||
253 | ret += " --iscrypted" | ||
254 | |||
255 | return ret | ||
256 | |||
257 | def _getParser(self): | ||
258 | def password_cb(option, opt_str, value, parser): | ||
259 | parser.values.isCrypted = True | ||
260 | parser.values.password = value | ||
261 | |||
262 | op = F12_Bootloader._getParser(self) | ||
263 | op.add_option("--iscrypted", dest="isCrypted", action="store_true", default=False) | ||
264 | op.add_option("--md5pass", action="callback", callback=password_cb, nargs=1, type="string") | ||
265 | return op | ||
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): | |||
115 | 115 | ||
116 | return retval | 116 | return retval |
117 | 117 | ||
118 | class RHEL5_PartData(FC4_PartData): | ||
119 | removedKeywords = FC4_PartData.removedKeywords | ||
120 | removedAttrs = FC4_PartData.removedAttrs | ||
121 | |||
122 | def __init__(self, *args, **kwargs): | ||
123 | FC4_PartData.__init__(self, *args, **kwargs) | ||
124 | self.encrypted = kwargs.get("encrypted", False) | ||
125 | self.passphrase = kwargs.get("passphrase", "") | ||
126 | |||
127 | def _getArgsAsStr(self): | ||
128 | retval = FC4_PartData._getArgsAsStr(self) | ||
129 | |||
130 | if self.encrypted: | ||
131 | retval += " --encrypted" | ||
132 | |||
133 | if self.passphrase != "": | ||
134 | retval += " --passphrase=\"%s\"" % self.passphrase | ||
135 | |||
136 | return retval | ||
137 | |||
138 | class F9_PartData(FC4_PartData): | 118 | class F9_PartData(FC4_PartData): |
139 | removedKeywords = FC4_PartData.removedKeywords + ["bytesPerInode"] | 119 | removedKeywords = FC4_PartData.removedKeywords + ["bytesPerInode"] |
140 | removedAttrs = FC4_PartData.removedAttrs + ["bytesPerInode"] | 120 | removedAttrs = FC4_PartData.removedAttrs + ["bytesPerInode"] |
@@ -281,25 +261,6 @@ class FC4_Partition(FC3_Partition): | |||
281 | op.add_option("--label", dest="label") | 261 | op.add_option("--label", dest="label") |
282 | return op | 262 | return op |
283 | 263 | ||
284 | class RHEL5_Partition(FC4_Partition): | ||
285 | removedKeywords = FC4_Partition.removedKeywords | ||
286 | removedAttrs = FC4_Partition.removedAttrs | ||
287 | |||
288 | def __init__(self, writePriority=130, *args, **kwargs): | ||
289 | FC4_Partition.__init__(self, writePriority, *args, **kwargs) | ||
290 | |||
291 | def part_cb (option, opt_str, value, parser): | ||
292 | if value.startswith("/dev/"): | ||
293 | parser.values.ensure_value(option.dest, value[5:]) | ||
294 | else: | ||
295 | parser.values.ensure_value(option.dest, value) | ||
296 | |||
297 | def _getParser(self): | ||
298 | op = FC4_Partition._getParser(self) | ||
299 | op.add_option("--encrypted", action="store_true", default=False) | ||
300 | op.add_option("--passphrase") | ||
301 | return op | ||
302 | |||
303 | class F9_Partition(FC4_Partition): | 264 | class F9_Partition(FC4_Partition): |
304 | removedKeywords = FC4_Partition.removedKeywords | 265 | removedKeywords = FC4_Partition.removedKeywords |
305 | removedAttrs = FC4_Partition.removedAttrs | 266 | removedAttrs = FC4_Partition.removedAttrs |