Modify

Opened 2 years ago

Last modified 2 years ago

#21304 new defect

sysupgrade issue

Reported by: anonymous Owned by: developers
Priority: response-needed Milestone: Designated Driver (Trunk)
Component: base system Version: Trunk
Keywords: Cc:

Description

DESIGNATED DRIVER (Bleeding Edge, r47723)
TP-Link TL-WDR4300

sysupgrade is not automatically carrying over /etc/config. The sysupgrade will perform, router reboots, and after reboot configs are reset to "failsafe".

Wired PCs cannot get DHCP. I had to force the router into failsafe mode, ssh in, and issue mtd -r erase rootfs_data. After that I was able to get dhcp, and scp backed up network configs stored on another pc to /etc/config on the router to restore connection.

I had to add:

/etc/config
/etc/config/scripts (my own scripts to aide me for openwrt setup)

to sysupgrade.conf

To force openwrt to carry over my configs and custom scripts during the sysupgrade process. After I added those lines to sysupgrade.conf sysupgrade performed normally without losing scripts or connection.

Attachments (0)

Change History (4)

comment:1 follow-up: Changed 2 years ago by jow

  • Priority changed from normal to response-needed

Did you leave out opkg of your build or did you choose to strip target ipk metadata from your build? Both will cause sysupgrade to not consider /etc/config/ .

Also /etc/config/* is backed up on a per-file basis, the entire directory is not considered.

comment:2 in reply to: ↑ 1 Changed 2 years ago by anonymous

Replying to jow:

Did you leave out opkg of your build or did you choose to strip target ipk metadata from your build? Both will cause sysupgrade to not consider /etc/config/ .

Also /etc/config/* is backed up on a per-file basis, the entire directory is not considered.

Did a standard sysupgrade without altering the image:

cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/openwrt-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin
sysupgrade -v openwrt-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin

On my previous router, TP-Link TL-WDR3600, ,using DD snap I did not alter sysupgrade.conf at all and it automatically carried over /etc/config during the sysupgrade.

For some reason, on the generic-tl-wdr4300-v1 snap it does not carry over /etc/config automatically.

comment:3 Changed 2 years ago by anonymous

To clarify better, I upgraded to OpenWRT from stock via the factory bin, and did not use a custom build. After that I use standard sysupgrade -v

https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/openwrt-ar71xx-generic-tl-wdr4300-v1-squashfs-factory.bin

comment:4 Changed 2 years ago by anonymous

Any updates with this issue?

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.