base-files: upgrade: Fix export_partdevice() quoting
authorBrian Norris <computersforpeace@gmail.com>
Wed, 21 Dec 2022 06:21:46 +0000 (22:21 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 3 Feb 2023 13:09:46 +0000 (14:09 +0100)
commit3cd882744d8ee347e7b55f113a95f93cfe7175cd
tree08ebe0c66b069b85c789cd4ede16da9ea9a67101
parentd9a1eee764aa8a800e2094d614bbe8e1b248b8c3
base-files: upgrade: Fix export_partdevice() quoting

$BOOTDEV_MAJOR may be empty for many of the uevents parsed in this
function. This condition thus tends to fail benignly (we just skip to
the next device), but it can really clutter the stage2 sysupgrade
stderr, since it looks like the "=" operand doesn't have an appropriate
left-hand argument.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
package/base-files/files/lib/upgrade/common.sh