diff options
Diffstat (limited to 'scripts/lib/wic/plugins/imager/direct.py')
-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): | |||
155 | device_name = "UUID=%s" % part.fsuuid | 155 | device_name = "UUID=%s" % part.fsuuid |
156 | else: | 156 | else: |
157 | device_name = "PARTUUID=%s" % part.uuid | 157 | device_name = "PARTUUID=%s" % part.uuid |
158 | elif part.use_label: | ||
159 | device_name = "LABEL=%s" % part.label | ||
158 | else: | 160 | else: |
159 | # mmc device partitions are named mmcblk0p1, mmcblk0p2.. | 161 | # mmc device partitions are named mmcblk0p1, mmcblk0p2.. |
160 | prefix = 'p' if part.disk.startswith('mmcblk') else '' | 162 | prefix = 'p' if part.disk.startswith('mmcblk') else '' |