Modify

Opened 4 years ago

Last modified 4 years ago

#14190 new defect

fail to sysupgrade image via luci

Reported by: anonymous Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

The error message:
The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform.

Digging into, it looks like the $ARGC in /lib/upgrade/platform.sh is null in this comparison (below) because it didn't passed throu and printed "ash: bad number" when running it manually.

platform.platform_check_image() {
        local board=$(ar71xx_board_name)
        local magic="$(get_magic_word "$1")"
        local magic_long="$(get_magic_long "$1")"

        [ '''"$ARGC"''' -gt 1 ] && return 1

Please, let us know if replacing $ARGC for a $# looks like a good alternative. We can send a patch for it too. Thank you

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.