diff options
author | Kevin Hao <kexin.hao@windriver.com> | 2018-09-12 08:44:46 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-12 08:18:09 +0100 |
commit | 51638edaa00befaed58e2def255d46ae44d9234f (patch) | |
tree | 7a9bbf34353a7ffcccad98e3b01e17dd6454626f /scripts/lib/wic/plugins | |
parent | 3e222bf3e0631b385dc46b02b6ba890451c291b2 (diff) | |
download | openembedded-core-51638edaa00befaed58e2def255d46ae44d9234f.tar.gz openembedded-core-51638edaa00befaed58e2def255d46ae44d9234f.tar.bz2 openembedded-core-51638edaa00befaed58e2def255d46ae44d9234f.zip |
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.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins')
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 '' |