Please use dpkg-divert instead of overwrite in ubuntu-system-adjustments, mintsystem and mint-artwork-common

Bug #1317033 reported by Dario Gallucci
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linux Mint
New
Undecided
Unassigned

Bug Description

Hello I'm a new user of linux mint and I like it, however i noticed that it performs an overwrite of certain configuration and system files during every boot. This causes some unwanted effects:

- Between an update of an "altered" package and a reboot, any of the changed files will not be the one provided by linux mint.

- Every modification of an "altered" configuration file will not be kept after reboot.

- Even if the mint file is modified, those modifications will not be kept during an upgrade of the mint package, because apt will not recognize them as configuration files and offer to merge the modifications during upgrade.

I have noticed this while trying to install pepperflashplugin-nonfree for chromium. In this case instead of overwriting /etc/chromium-browser/default with /usr/share/linuxmint/common/artwork/chromium/default at every boot the package mint-artwork-common should include:

- a customized /etc/chromium-browser/default
- a line in the pre-install script like this:
         dpkg-divert --package mint-artwork-common --divert /etc/chromium-browser/default.diverted-by-mint-artwork-common --rename /etc/chromium-browser/default
- a line in the post-remove script like this:
         dpkg-divert --package mint-artwork-common --rename --remove /etc/chromium-browser/default

and so on for any "altered" file.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.