Modify

Opened 2 years ago

Last modified 22 months ago

#21941 new defect

sysupgrade failure on x86_64

Reported by: shonjir Owned by: developers
Priority: high Milestone:
Component: base system Version: Trunk
Keywords: sysupgrade partx x86_64 failure Cc: r48745

Description

On recent DD builds sysupgrade began failing on my x86_64 combined-squashfs build. It's been working fine for quite some time.

My last upgradable build was r48648, with the failure appearing at or before r48745.

Symptom is failure to restart when upgrading from LuCI. When upgrading manually using sysupgrade errors indicate failure is due to missing 'partx' binary that is apparently required by the upgrade script.

root@gwvm:/mnt/vdb1# sysupgrade openwrt-x86-64-combined-squashfs.img 
Saving config files...
Sending TERM to remaining processes ... logd logread rpcd netifd odhcpd crond uhttpd collectd openvpn openvpn ntpd uhttpd dynamic_dns_upd dnsmasq ubusd askfirst 
Sending KILL to remaining processes ... askfirst 
Switching to ramdisk...
Performing system upgrade...
Reading partition table from bootdisk...
ash: partx: not found
ash: partx: not found
ash: partx: not found
ash: arithmetic syntax error

Attachments (0)

Change History (8)

comment:1 Changed 2 years ago by shonjir

Update: Adding 'partx-utils' to local configuration allows sysupgrade to operate normally. It appears this is required by base-system but is not currently part of base-system.

comment:2 Changed 2 years ago by anonymous

Same issue still exists on x86 (openwrt-x86-kvm_guest-combined-ext4.img.gz) images ...

comment:4 Changed 2 years ago by shonjir

Looks like an order issue in the Makefile. DEFAULT_PACKAGES appears before target.mk which sets this variable.

Last edited 2 years ago by shonjir (previous) (diff)

comment:5 Changed 22 months ago by anonymous

Any news about this issue?

comment:6 Changed 22 months ago by mario_lopes

Hello all.

Adding 'partx-utils' to local configuration, build OpenWRT and then sysupgrade don't work.
Overwriting flash (USB/CF/SD) with dd command on computer, using above compiled image, and then trying to sysupgrade, it works.
So it seems that 'partx-utils' needs to be installed before sysupgrade or LuCI Flash firmware.

comment:7 follow-up: Changed 22 months ago by Stefan Hellermann <stefan@…>

workaround:
sysupgrade -p openwrt-x86-64-combined-squashfs.img

The -p flag switches sysupgr

comment:8 in reply to: ↑ 7 Changed 22 months ago by Stefan Hellermann <stefan@…>

Replying to Stefan Hellermann <stefan@…>:

workaround:
sysupgrade -p openwrt-x86-64-combined-squashfs.img

The -p flag switches sysupgr

The -p flag switches sysupgrade to old behavior

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.