aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/source/bootimg-efi.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-12-13 22:20:25 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-18 18:00:25 +0000
commit9256b8799495634ee8aee5d16ff71bd6e6e25ed4 (patch)
tree80b61e458104dd2f39ced102ac1fbaa24cd51f5f /scripts/lib/wic/plugins/source/bootimg-efi.py
parent7cdd4034b3e6ff4e13d491dfba24906afe495e2d (diff)
downloadopenembedded-core-contrib-9256b8799495634ee8aee5d16ff71bd6e6e25ed4.tar.gz
openembedded-core-contrib-9256b8799495634ee8aee5d16ff71bd6e6e25ed4.tar.bz2
openembedded-core-contrib-9256b8799495634ee8aee5d16ff71bd6e6e25ed4.zip
wic: Introduce --fsuuid and have --use-uuid make use of UUID too
First, allow for wic to be given a filesystem UUID to be used when creating a filesystem. When not provided, wic will generate the UUID to be used. Next, when --use-uuid is passed, we update the fstab to mount things via UUID (and if not found, then use PARTUUID) as UUID is more portable. Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-efi.py')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-efi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py
index 4c4f36a32f..beb74d7a71 100644
--- a/scripts/lib/wic/plugins/source/bootimg-efi.py
+++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
@@ -240,7 +240,8 @@ class BootimgEFIPlugin(SourcePlugin):
# dosfs image, created by mkdosfs
bootimg = "%s/boot.img" % cr_workdir
- dosfs_cmd = "mkdosfs -n efi -C %s %d" % (bootimg, blocks)
+ dosfs_cmd = "mkdosfs -n efi -i %s -C %s %d" % \
+ (part.fsuuid, bootimg, blocks)
exec_native_cmd(dosfs_cmd, native_sysroot)
mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (bootimg, hdddir)