summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorHenning Schild <henning.schild@siemens.com>2022-04-22 11:44:48 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-04 13:07:33 +0100
commitc5ca6110ce9162830c2ed32a7eadd506c5cc97ba (patch)
tree62af7fcfb4d0dbac04b8b5b21e7e4b169e2ecae2 /scripts
parent25a6012a1e5a260a2c4c2a4bf27f8d254ba0a54a (diff)
downloadpoky-c5ca6110ce9162830c2ed32a7eadd506c5cc97ba.tar.gz
wic: do not use PARTLABEL for msdos partition tables
When using "msdos" partition tables and "--label" but not "--use-uuid" one can generate images which will not find their root, because PARTLABEL does not work for "msdos". Fix that by simply not going the PARTLABEL path in case of "msdos". Fixes: 2fb247c5ecf0 ("wic: support rootdev identified by partition label") (From OE-Core rev: 354ef6b723f50b5f0b46a2bf5797e5b982c6ea73) Signed-off-by: Henning Schild <henning.schild@siemens.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 9ea1a838b946020e026edc032039552b723fcaa4) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/plugins/imager/direct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index 35fff7c102..4d0b836ef6 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -259,7 +259,7 @@ 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: 262 elif part.label and self.ptable_format != 'msdos':
263 return "PARTLABEL=%s" % part.label 263 return "PARTLABEL=%s" % part.label
264 else: 264 else:
265 suffix = 'p' if part.disk.startswith('mmcblk') else '' 265 suffix = 'p' if part.disk.startswith('mmcblk') else ''