recovery-initramfs: get rid off singlemtdsys variable
This variable is not defined in ccmp1 platforms, making the swupdate for single mtd failing. Instead of reading this variable from uboot environment, determine if the system is multimtd checking the existence of /dev/ubi1. Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
parent
0c5b5ff75e
commit
1e5bd003bd
|
|
@ -231,10 +231,8 @@ format_ubi_volume() {
|
||||||
psplash_message "Formatting '${1}' partition..."
|
psplash_message "Formatting '${1}' partition..."
|
||||||
psplash_progress "0"
|
psplash_progress "0"
|
||||||
|
|
||||||
# Read the singlemtdsys variable.
|
# If /dev/ubi1 exists is a system with multiple MTD partitions
|
||||||
read_uboot_var singlemtdsys singlemtdsys
|
if [ ! -c "/dev/ubi1" ]; then
|
||||||
|
|
||||||
if [ "${singlemtdsys}" = "yes" ]; then
|
|
||||||
# Find the volume number associated to the volume name
|
# Find the volume number associated to the volume name
|
||||||
for d in /dev/ubi0_*; do
|
for d in /dev/ubi0_*; do
|
||||||
volname="$(ubinfo ${d} | grep ^Name | awk '{print $(2)}')"
|
volname="$(ubinfo ${d} | grep ^Name | awk '{print $(2)}')"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue