From 9ebc8301965b6b0aedc1d0cb8a9bc3e4893f2592 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 13 Dec 2017 22:20:25 -0500 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/lib/wic/help.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'scripts/lib/wic/help.py') diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 2ac45e052e..bf658b94e3 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py @@ -863,7 +863,10 @@ DESCRIPTION This is achieved by wic adding entries to the fstab during image generation. In order for a valid fstab to be generated one of the --ondrive, --ondisk or --use-uuid partition options must be used for - each partition that specifies a mountpoint. + each partition that specifies a mountpoint. Note that with --use-uuid + and non-root , including swap, the mount program must + understand the PARTUUID syntax. This currently excludes the busybox + versions of these applications. The following are supported 'part' options: @@ -986,6 +989,11 @@ DESCRIPTION in bootloader configuration before running wic. In this case .wks file can be generated or modified to set preconfigured parition UUID using this option. + --fsuuid: This option is specific to wic. It specifies filesystem UUID. + It's useful if preconfigured filesystem UUID is added to kernel command line + in bootloader configuration before running wic. In this case .wks file can + be generated or modified to set preconfigured filesystem UUID using this option. + --system-id: This option is specific to wic. It specifies partition system id. It's useful for the harware that requires non-default partition system ids. The parameter in one byte long hex number either with 0x prefix or without it. -- cgit v1.2.3-54-g00ecf