From: Daniel Golle Date: Sun, 11 Aug 2024 17:14:12 +0000 (+0100) Subject: base-files: get rid of forgotten traces of fitblk_get_bootdev X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=74bf11570f80dd3a1f95c126d7bd526ee6d5b964;p=openwrt%2Fstaging%2Fansuel.git base-files: get rid of forgotten traces of fitblk_get_bootdev 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 --- diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 718907a711..af1182cb16 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -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] | \