mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 00:32:13 +02:00
wic: kparser.py: Check for SquashFS and use-uuid
The SquashFS filesystem does not support UUIDs so make this combination be an error. (From OE-Core rev: 2fbdcf4e59c835af0f4041bc34243decb42321ef) Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user