[openwrt/openwrt] base-files: get rid of forgotten traces of fitblk_get_bootdev
LEDE Commits
lede-commits at lists.infradead.org
Mon Aug 12 11:22:36 PDT 2024
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/74bf11570f80dd3a1f95c126d7bd526ee6d5b964
commit 74bf11570f80dd3a1f95c126d7bd526ee6d5b964
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sun Aug 11 18:14:12 2024 +0100
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 <daniel at makrotopia.org>
---
package/base-files/files/lib/upgrade/common.sh | 1 -
1 file changed, 1 deletion(-)
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] | \
More information about the lede-commits
mailing list