diff options
author | Schmidt, Adriaan <adriaan.schmidt@siemens.com> | 2021-11-23 08:33:29 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-24 09:55:54 +0000 |
commit | 9d1697e51dee64af7c37172e4d338e39357bac50 (patch) | |
tree | d3b6773e2a8ac44a543f9debf903e0c43484ef89 | |
parent | 64444fae5708a2761162a93b6a1bf0da0e864b35 (diff) | |
download | poky-9d1697e51dee64af7c37172e4d338e39357bac50.tar.gz |
wic: support rootdev identified by partition label
We already support specifying the rootfs by PARTUUID. This adds general
support for letting the kernel find the rootfs by PARTLABEL.
(From OE-Core rev: 2fb247c5ecf057bb96649a3c0234794b4991c050)
Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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) |