base-files: remove block2mtd checks from sysupgrade
authorFelix Fietkau <nbd@nbd.name>
Sat, 17 Oct 2020 09:15:32 +0000 (11:15 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 17 Oct 2020 14:43:17 +0000 (16:43 +0200)
This hasn't been used in a long time

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/base-files/files/lib/upgrade/common.sh
target/linux/octeon/base-files/lib/upgrade/platform.sh

index c375b707427e204b7bdcca74f73a8c01a3d9db74..2eb26ba44b05338418c921c959db14b32b41025d 100644 (file)
@@ -126,10 +126,6 @@ export_bootdevice() {
 
        if read cmdline < /proc/cmdline; then
                case "$cmdline" in
-                       *block2mtd=*)
-                               bootdisk="${cmdline##*block2mtd=}"
-                               bootdisk="${bootdisk%%,*}"
-                       ;;
                        *root=*)
                                rootpart="${cmdline##*root=}"
                                rootpart="${rootpart%% *}"
index d938950906436661b13c52d2d52060ab562b7252..33a99312637740b0f9381510915f579df8da307d 100755 (executable)
@@ -7,10 +7,6 @@ platform_get_rootfs() {
 
        if read cmdline < /proc/cmdline; then
                case "$cmdline" in
-                       *block2mtd=*)
-                               rootfsdev="${cmdline##*block2mtd=}"
-                               rootfsdev="${rootfsdev%%,*}"
-                       ;;
                        *root=*)
                                rootfsdev="${cmdline##*root=}"
                                rootfsdev="${rootfsdev%% *}"