mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 18:32:13 +02:00
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 <kexin.hao@windriver.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
92bc2b3e84
commit
821711bf2e
@@ -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 ''
|
||||
|
||||
Reference in New Issue
Block a user