summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-12-13 22:20:23 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-18 18:00:25 +0000
commit2fbdcf4e59c835af0f4041bc34243decb42321ef (patch)
tree9bcaf1d4a1d448d1112c27b67a14e2b2f8a9e54c /scripts
parentde2f2fc9e8e6d874a11e69adc2f438975a5c1359 (diff)
downloadopenembedded-core-2fbdcf4e59c835af0f4041bc34243decb42321ef.tar.gz
openembedded-core-2fbdcf4e59c835af0f4041bc34243decb42321ef.tar.bz2
openembedded-core-2fbdcf4e59c835af0f4041bc34243decb42321ef.zip
wic: kparser.py: Check for SquashFS and use-uuid
The SquashFS filesystem does not support UUIDs so make this combination be an error. Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/ksparser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
index 7850e81d2f..4fb6868531 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -195,6 +195,11 @@ class KickStart():
raise KickStartError('%s:%d: %s' % \
(confpath, lineno, err))
if line.startswith('part'):
+ # SquashFS does not support UUID
+ if parsed.fstype == 'squashfs' and parsed.use_uuid:
+ err = "%s:%d: SquashFS does not support UUID" \
+ % (confpath, lineno)
+ raise KickStartError(err)
# using ArgumentParser one cannot easily tell if option
# was passed as argument, if said option has a default
# value; --overhead-factor/--extra-space cannot be used