summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/plugins/imager/direct.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index bdb8385620..da1c061063 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -140,9 +140,12 @@ class DirectPlugin(ImagerPlugin):
140 or part.mountpoint == "/": 140 or part.mountpoint == "/":
141 continue 141 continue
142 142
143 # mmc device partitions are named mmcblk0p1, mmcblk0p2.. 143 if part.use_uuid:
144 prefix = 'p' if part.disk.startswith('mmcblk') else '' 144 device_name = "PARTUUID=%s" % part.uuid
145 device_name = "/dev/%s%s%d" % (part.disk, prefix, part.realnum) 145 else:
146 # mmc device partitions are named mmcblk0p1, mmcblk0p2..
147 prefix = 'p' if part.disk.startswith('mmcblk') else ''
148 device_name = "/dev/%s%s%d" % (part.disk, prefix, part.realnum)
146 149
147 opts = part.fsopts if part.fsopts else "defaults" 150 opts = part.fsopts if part.fsopts else "defaults"
148 line = "\t".join([device_name, part.mountpoint, part.fstype, 151 line = "\t".join([device_name, part.mountpoint, part.fstype,