base-files: get rid of forgotten traces of fitblk_get_bootdev
authorDaniel Golle <daniel@makrotopia.org>
Sun, 11 Aug 2024 17:14:12 +0000 (18:14 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 12 Aug 2024 18:16:58 +0000 (19:16 +0100)
The function fitblk_get_bootdev doesn't exist any more, using it in
export_bootdevice anyway never made much sense and only worked for
classic block devices.
Just drop /dev/fit* handling there, it isn't needed anywhere.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/base-files/files/lib/upgrade/common.sh

index 718907a7111791a31406b53cc6584d9b315a1d51..af1182cb16a383afb978138434f80ceac57f41d9 100644 (file)
@@ -196,7 +196,6 @@ export_bootdevice() {
                        done
                ;;
                /dev/*)
-                       [ "$rootpart" = "/dev/fit0" ] && rootpart="$(fitblk_get_bootdev)"
                        uevent="/sys/class/block/${rootpart##*/}/../uevent"
                ;;
                0x[a-f0-9][a-f0-9][a-f0-9] | 0x[a-f0-9][a-f0-9][a-f0-9][a-f0-9] | \