diff options
Diffstat (limited to 'scripts/lib/mic')
| -rw-r--r-- | scripts/lib/mic/kickstart/custom_commands/partition.py | 2 | ||||
| -rw-r--r-- | scripts/lib/mic/utils/oe/misc.py | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py b/scripts/lib/mic/kickstart/custom_commands/partition.py index 4b11195160..fe8e55a376 100644 --- a/scripts/lib/mic/kickstart/custom_commands/partition.py +++ b/scripts/lib/mic/kickstart/custom_commands/partition.py | |||
| @@ -31,8 +31,6 @@ from mic.utils.oe.misc import * | |||
| 31 | 31 | ||
| 32 | from mic.kickstart.custom_commands import * | 32 | from mic.kickstart.custom_commands import * |
| 33 | 33 | ||
| 34 | BOOTDD_EXTRA_SPACE = 16384 | ||
| 35 | |||
| 36 | class Wic_PartData(Mic_PartData): | 34 | class Wic_PartData(Mic_PartData): |
| 37 | removedKeywords = Mic_PartData.removedKeywords | 35 | removedKeywords = Mic_PartData.removedKeywords |
| 38 | removedAttrs = Mic_PartData.removedAttrs | 36 | removedAttrs = Mic_PartData.removedAttrs |
diff --git a/scripts/lib/mic/utils/oe/misc.py b/scripts/lib/mic/utils/oe/misc.py index 9edaa230e4..097d44c057 100644 --- a/scripts/lib/mic/utils/oe/misc.py +++ b/scripts/lib/mic/utils/oe/misc.py | |||
| @@ -106,3 +106,15 @@ def get_wks_var(key): | |||
| 106 | 106 | ||
| 107 | def add_wks_var(key, val): | 107 | def add_wks_var(key, val): |
| 108 | wks_vars[key] = val | 108 | wks_vars[key] = val |
| 109 | |||
| 110 | BOOTDD_EXTRA_SPACE = 16384 | ||
| 111 | |||
| 112 | def get_line_val(line, key): | ||
| 113 | """ | ||
| 114 | Extract the value from the VAR="val" string | ||
| 115 | """ | ||
| 116 | if line.startswith(key + "="): | ||
| 117 | stripped_line = line.split('=')[1] | ||
| 118 | stripped_line = stripped_line.replace('\"', '') | ||
| 119 | return stripped_line | ||
| 120 | return None | ||
