summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libarchive/libarchive_3.3.3.bb
diff options
context:
space:
mode:
authorGeoff Parker <geoffhp@gmail.com>2018-10-11 09:31:26 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-12 16:57:21 +0100
commit50f41202cc9928e2a3c12ccbe36f4af6fc0aa8c6 (patch)
tree2667b549fe9f5a9236dbb27a2f21653303c8c576 /meta/recipes-extended/libarchive/libarchive_3.3.3.bb
parent2848e37111ac969f1ae67010342ec36c80d7bbe5 (diff)
downloadpoky-50f41202cc9928e2a3c12ccbe36f4af6fc0aa8c6.tar.gz
wic: make engine.py:get_partitions() resilient to parted/dmidecode stderr output
Running wic commands on Debian 10 systems fail in scripts/lib/wic/engine.py:get_partitions() due to new stderr output captured when trying to parse the output from /sbin/parted as a non-root user. The parted command calls the dmidecode utility, which produces this error as a non-root user: /sys/firmware/dmi/tables/smbios_entry_point: Permission denied /dev/mem: Permission denied scripts/lib/wic/engine.py:get_partitions() calls misc.py:exec_cmd(), a subprocess wrapper which returns a combined stderr and sdtdout. These messages to stderr confuse the partition table parser in get_partitions(). This patch has the partition table parser ignore lines before the expected "BYT;" header string. Running wic in Debian 9 does not have this issue. (From OE-Core rev: d6936301d7598b7a783beaae95109555faf6cc17) Signed-off-by: Geoff Parker <geoffhp@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/libarchive/libarchive_3.3.3.bb')
0 files changed, 0 insertions, 0 deletions