mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00: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' % \
|
raise KickStartError('%s:%d: %s' % \
|
||||||
(confpath, lineno, err))
|
(confpath, lineno, err))
|
||||||
if line.startswith('part'):
|
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
|
# using ArgumentParser one cannot easily tell if option
|
||||||
# was passed as argument, if said option has a default
|
# was passed as argument, if said option has a default
|
||||||
# value; --overhead-factor/--extra-space cannot be used
|
# value; --overhead-factor/--extra-space cannot be used
|
||||||
|
|||||||
Reference in New Issue
Block a user