base-files: remove block2mtd checks from sysupgrade

This hasn't been used in a long time

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2020-10-17 11:15:32 +02:00
parent 93f98b2835
commit 4a0688ed71
2 changed files with 0 additions and 8 deletions

View 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%% *}"

View File

@ -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%% *}"