From 821711bf2edc3d2eb5a695653ff5d439f43520be Mon Sep 17 00:00:00 2001 From: Kevin Hao Date: Wed, 12 Sep 2018 08:44:46 +0800 Subject: wic: Introduce the --use-label partition parameter We can use this parameter to make the wic use the label to name a partition in /etc/fstab. (From OE-Core rev: 51638edaa00befaed58e2def255d46ae44d9234f) Signed-off-by: Kevin Hao Reviewed-by: Tom Rini Signed-off-by: Richard Purdie --- scripts/lib/wic/plugins/imager/direct.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/lib/wic/plugins/imager') diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index 81583e97b9..bb14a334b2 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py @@ -155,6 +155,8 @@ class DirectPlugin(ImagerPlugin): device_name = "UUID=%s" % part.fsuuid else: device_name = "PARTUUID=%s" % part.uuid + elif part.use_label: + device_name = "LABEL=%s" % part.label else: # mmc device partitions are named mmcblk0p1, mmcblk0p2.. prefix = 'p' if part.disk.startswith('mmcblk') else '' -- cgit v1.2.3-54-g00ecf