From: Chee Yang Lee Date: Tue, 22 Oct 2019 05:27:06 +0000 (+0800) Subject: wic/engine: use 'linux-swap' for swap file system X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~12942 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e6da22fe4faf841bcec02e55f376b4dae04d6a8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wic/engine: use 'linux-swap' for swap file system [YOCTO #13312] see https://bugzilla.yoctoproject.org/show_bug.cgi?id=13312 wic/engine.Disk._get_part_image was looking at variable fstypes for supported fstype which is 'swap' but image build with 'linux-swap'. supported fstype should be 'linux-swap'. Signed-off-by: Chee Yang Lee Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index 61939ad194a..18776fa8a00 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py @@ -541,7 +541,7 @@ def wic_write(args, native_sysroot): """ Write image to a target device. """ - disk = Disk(args.image, native_sysroot, ('fat', 'ext', 'swap')) + disk = Disk(args.image, native_sysroot, ('fat', 'ext', 'linux-swap')) disk.write(args.target, args.expand) def find_canned(scripts_path, file_name):