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 76cc55b848..127ca79ade 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -228,6 +228,23 @@ class KickStart():
228 err = "%s:%d: SquashFS does not support LABEL" \ 228 err = "%s:%d: SquashFS does not support LABEL" \
229 % (confpath, lineno) 229 % (confpath, lineno)
230 raise KickStartError(err) 230 raise KickStartError(err)
231 if parsed.fstype == 'msdos' or parsed.fstype == 'vfat':
232 if parsed.fsuuid:
233 if parsed.fsuuid.upper().startswith('0X'):
234 if len(parsed.fsuuid) > 10:
235 err = "%s:%d: fsuuid %s given in wks kickstart file " \
236 "exceeds the length limit for %s filesystem. " \
237 "It should be in the form of a 32 bit hexadecimal" \
238 "number (for example, 0xABCD1234)." \
239 % (confpath, lineno, parsed.fsuuid, parsed.fstype)
240 raise KickStartError(err)
241 elif len(parsed.fsuuid) > 8:
242 err = "%s:%d: fsuuid %s given in wks kickstart file " \
243 "exceeds the length limit for %s filesystem. " \
244 "It should be in the form of a 32 bit hexadecimal" \
245 "number (for example, 0xABCD1234)." \
246 % (confpath, lineno, parsed.fsuuid, parsed.fstype)
247 raise KickStartError(err)
231 if parsed.use_label and not parsed.label: 248 if parsed.use_label and not parsed.label:
232 err = "%s:%d: Must set the label with --label" \ 249 err = "%s:%d: Must set the label with --label" \
233 % (confpath, lineno) 250 % (confpath, lineno)