mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 11:28:58 +00:00
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. (From OE-Core rev: 9256b8799495634ee8aee5d16ff71bd6e6e25ed4) 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:
@@ -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)
|
||||
|
||||
@@ -186,7 +186,8 @@ class BootimgPcbiosPlugin(SourcePlugin):
|
||||
# dosfs image, created by mkdosfs
|
||||
bootimg = "%s/boot%s.img" % (cr_workdir, part.lineno)
|
||||
|
||||
dosfs_cmd = "mkdosfs -n boot -S 512 -C %s %d" % (bootimg, blocks)
|
||||
dosfs_cmd = "mkdosfs -n boot -i %s -S 512 -C %s %d" % \
|
||||
(part.fsuuid, bootimg, blocks)
|
||||
exec_native_cmd(dosfs_cmd, native_sysroot)
|
||||
|
||||
mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (bootimg, hdddir)
|
||||
|
||||
Reference in New Issue
Block a user