Modify

Opened 7 years ago

Closed 3 years ago

#8708 closed defect (fixed)

Installing some packages overwrites existing configuration files.

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Though it is possible to use /etc/sysupgrade.conf to have some configuration files persist a firmware upgrade (eg snapshots) some of these configuration are overwritten after installing the corresponding packages:
Some packages that cause this are ntpclient and samba.

This doesn't happen for all packages, whereas uhttpd package (which is missing in the snapshot images) does not overwrite existing /etc/config/uhttpd and only create its bundled (default) config as /etc/config/uhttpd-opkg.

all packages that doe not overwrite existing configurations do have a connfile defined though their makefile (eg root/trunk/package/uhttpd/Makefile@24952)

define Package/uhttpd/conffiles
	/etc/config/uhttpd
	/etc/uhttpd.crt
	/etc/uhttpd.key
endef

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by jow

opkg overwrites conffiles if they did not change, that is done by comparing the stored md5sum with the calculated md5sum of the existing file. Is this the case here?

comment:2 Changed 7 years ago by anonymous

conffiles section is missing in samba and ntpclient packages makefiles.

MD5 of configuration bundled in these packages

5030d0cd1fe803107805e6ec510aead6  samba
1cf9d075c4e42397f8cd9dbc58864334  ntpclient

is different from the ones that survived reflash out of sysupgrade persitence/protection system.

e794a990b5a61acb6139cfb04f4dd056  /etc/config/ntpclient
061263515e5d9bf96a9587353593239d  /etc/config/samba

Each time I reflash and install these packages from ssh I get default settings again even though sysupgrade preserve those configurations by default (no need for related /etc/sysupgrade.conf entries)

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:4 Changed 3 years ago by jogo

  • Resolution set to fixed
  • Status changed from new to closed

Samba has been fixed in r45220, while ntpclient is now maintained here: https://github.com/openwrt/packages.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.