diff options
Diffstat (limited to 'scripts/lib')
-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 c7bc2469ab..35fff7c102 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py | |||
@@ -259,6 +259,8 @@ class DirectPlugin(ImagerPlugin): | |||
259 | if part.mountpoint == "/": | 259 | if part.mountpoint == "/": |
260 | if part.uuid: | 260 | if part.uuid: |
261 | return "PARTUUID=%s" % part.uuid | 261 | return "PARTUUID=%s" % part.uuid |
262 | elif part.label: | ||
263 | return "PARTLABEL=%s" % part.label | ||
262 | else: | 264 | else: |
263 | suffix = 'p' if part.disk.startswith('mmcblk') else '' | 265 | suffix = 'p' if part.disk.startswith('mmcblk') else '' |
264 | return "/dev/%s%s%-d" % (part.disk, suffix, part.realnum) | 266 | return "/dev/%s%s%-d" % (part.disk, suffix, part.realnum) |