mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
base-files: export whole disk of fitblk backing partition
After commitad62247800
("base-files: improve lib/upgrade/common.sh") behavior of export_bootdevice has been made consistent in such way that always the whole disk device is exported (as that was the case already when matching via UUID) rather than the partition device. Do the same for the device holding the fitblk backing partition. Fixes:5992f976b3
("base-files: recognize bootdevice on devices using fitblk") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
85f34990d3
commit
0c18c5679a
@ -213,11 +213,8 @@ export_bootdevice() {
|
|||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
/dev/*)
|
/dev/*)
|
||||||
if [ "$rootpart" = "/dev/fit0" ]; then
|
[ "$rootpart" = "/dev/fit0" ] && rootpart="$(fitblk_get_bootdev)"
|
||||||
uevent="/sys/class/block/$(fitblk_get_bootdev)/uevent"
|
uevent="/sys/class/block/${rootpart##*/}/../uevent"
|
||||||
else
|
|
||||||
uevent="/sys/class/block/${rootpart##*/}/../uevent"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
0x[a-f0-9][a-f0-9][a-f0-9] | 0x[a-f0-9][a-f0-9][a-f0-9][a-f0-9] | \
|
0x[a-f0-9][a-f0-9][a-f0-9] | 0x[a-f0-9][a-f0-9][a-f0-9][a-f0-9] | \
|
||||||
[a-f0-9][a-f0-9][a-f0-9] | [a-f0-9][a-f0-9][a-f0-9][a-f0-9])
|
[a-f0-9][a-f0-9][a-f0-9] | [a-f0-9][a-f0-9][a-f0-9][a-f0-9])
|
||||||
|
Loading…
Reference in New Issue
Block a user