Openembedded Core Discussions
 help / color / mirror / Atom feed
* [wic][PATCH 0/9] UUID support
@ 2015-06-05  7:12 Ed Bartosh
  2015-06-05  7:12 ` [wic][PATCH 1/9] wic: Add --use-uuid partition option Ed Bartosh
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Ed Bartosh @ 2015-06-05  7:12 UTC (permalink / raw)
  To: openembedded-core

Hi,

Please, review implementation of partition UUID support in wic.

It contains two options: --part-type and --use-uuid
--part-type allows to set partition type UUID. It was incorrectly
implemted in wic and now it's hopefully fixed.

--use-uuid makes wic to generate random globally unique identifier
(GUID) for the partition and configure bootloader to boot from it
using root=PARTUUID=<GUID> in kernel command line.

This technique makes boot process more deterministic and reliable
for at least two reasons:
- It allows to boot the same image from different devices
- It fixes possible boot issues caused by using device names in
  kernel commandline as GUID doesn't change unlike device names.

Ed Bartosh (9):
  wic: Add --use-uuid partition option
  wic: Generate random uuid for partition
  wic: Fix format string
  wic: Refactored getting root device name
  wic: Add parameter 'uuid' to Image.add_partition method
  wic: Set type GUID and UUID for partition
  wic: Use partition UUID in directdisk-gpt
  wic: oe-selftest: Configure testing of gpt/UUID image
  wic: Add help for --part-type and --use-uuid options

 meta/lib/oeqa/selftest/wic.py                      |  4 +--
 scripts/lib/image/canned-wks/directdisk-gpt.wks    |  2 +-
 scripts/lib/image/help.py                          |  9 +++++++
 scripts/lib/wic/imager/direct.py                   | 31 ++++++++++------------
 .../lib/wic/kickstart/custom_commands/partition.py | 21 ++++++++++++++-
 scripts/lib/wic/plugins/source/bootimg-efi.py      |  6 ++---
 scripts/lib/wic/plugins/source/bootimg-pcbios.py   |  3 +--
 .../lib/wic/plugins/source/rootfs_pcbios_ext.py    |  3 +--
 scripts/lib/wic/utils/partitionedfs.py             | 20 ++++++++++++--
 9 files changed, 68 insertions(+), 31 deletions(-)

--
Ed



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-06-05  9:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-05  7:12 [wic][PATCH 0/9] UUID support Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 1/9] wic: Add --use-uuid partition option Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 2/9] wic: generate random uuid for partition Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 2/9] wic: Generate " Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 3/9] wic: fixed format string Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 3/9] wic: Fix " Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 4/9] wic: refactored getting root device name Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 4/9] wic: Refactored " Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 5/9] wic: add parameter 'uuid' to Image.add_partition method Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 5/9] wic: Add " Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 6/9] wic: set type GUID and UUID for partition Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 6/9] wic: Set " Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 7/9] wic: Use partition UUID in directdisk-gpt Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 8/9] wic: oe-selftest: Configure testing of gpt/UUID image Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 8/9] wic: testing: configured " Ed Bartosh
2015-06-05  7:12 ` [wic][PATCH 9/9] wic: Add help for --part-type and --use-uuid options Ed Bartosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox