summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/ksparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/ksparser.py')
-rw-r--r--scripts/lib/wic/ksparser.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
index 913e3283dc..3eb669da39 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -229,6 +229,23 @@ class KickStart():
229 err = "%s:%d: SquashFS does not support LABEL" \ 229 err = "%s:%d: SquashFS does not support LABEL" \
230 % (confpath, lineno) 230 % (confpath, lineno)
231 raise KickStartError(err) 231 raise KickStartError(err)
232 if parsed.fstype == 'msdos' or parsed.fstype == 'vfat':
233 if parsed.fsuuid:
234 if parsed.fsuuid.upper().startswith('0X'):
235 if len(parsed.fsuuid) > 10:
236 err = "%s:%d: fsuuid %s given in wks kickstart file " \
237 "exceeds the length limit for %s filesystem. " \
238 "It should be in the form of a 32 bit hexadecimal" \
239 "number (for example, 0xABCD1234)." \
240 % (confpath, lineno, parsed.fsuuid, parsed.fstype)
241 raise KickStartError(err)
242 elif len(parsed.fsuuid) > 8:
243 err = "%s:%d: fsuuid %s given in wks kickstart file " \
244 "exceeds the length limit for %s filesystem. " \
245 "It should be in the form of a 32 bit hexadecimal" \
246 "number (for example, 0xABCD1234)." \
247 % (confpath, lineno, parsed.fsuuid, parsed.fstype)
248 raise KickStartError(err)
232 if parsed.use_label and not parsed.label: 249 if parsed.use_label and not parsed.label:
233 err = "%s:%d: Must set the label with --label" \ 250 err = "%s:%d: Must set the label with --label" \
234 % (confpath, lineno) 251 % (confpath, lineno)