diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/mic/imager/direct.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/lib/mic/imager/direct.py b/scripts/lib/mic/imager/direct.py index f8c300c787..1f2f8fcf9c 100644 --- a/scripts/lib/mic/imager/direct.py +++ b/scripts/lib/mic/imager/direct.py | |||
@@ -345,10 +345,14 @@ class DirectImageCreator(BaseImageCreator): | |||
345 | parts = self._get_parts() | 345 | parts = self._get_parts() |
346 | for num, p in enumerate(parts, 1): | 346 | for num, p in enumerate(parts, 1): |
347 | if p.mountpoint == "/": | 347 | if p.mountpoint == "/": |
348 | part = '' | ||
349 | if p.disk.startswith('mmcblk'): | ||
350 | part = 'p' | ||
351 | |||
348 | if self._ptable_format == 'msdos' and num > 3: | 352 | if self._ptable_format == 'msdos' and num > 3: |
349 | rootdev = "/dev/%s%-d" % (p.disk, num + 1) | 353 | rootdev = "/dev/%s%s%-d" % (p.disk, part, num + 1) |
350 | else: | 354 | else: |
351 | rootdev = "/dev/%s%-d" % (p.disk, num) | 355 | rootdev = "/dev/%s%s%-d" % (p.disk, part, num) |
352 | root_part_uuid = p.part_type | 356 | root_part_uuid = p.part_type |
353 | 357 | ||
354 | return (rootdev, root_part_uuid) | 358 | return (rootdev, root_part_uuid) |