Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829525 - sys-apps/portage-3.0.28-r1: etc-update disregards user added content automatically
Summary: sys-apps/portage-3.0.28-r1: etc-update disregards user added content automati...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2021-12-18 08:00 UTC by Georgi
Modified: 2021-12-20 01:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Georgi 2021-12-18 08:00:05 UTC
On a downgrade from beta to stable nvidia drivers, after a notice there was a configuration change, etc-update run without arguments automatically removed commented stuff from /etc/modprobe.d/nvidia.conf which was added when the newer package was installed.

Newly added content didn't even trigger a config change notice on reemerge of the same version of the package.

etc-update should not consider user added content a trivial change and strip it out automatically, be it commented.

Reproducible: Always

Steps to Reproduce:
1. Emerge nvidia drivers 495.44-r2
2. Add a comment to /etc/modprobe.d/nvidia.conf
3. Emerge nvidia drivers 470-86-r1
4. run etc-update without parameters
Actual Results:  
etc-update removed user added comments without asking, considering them a trivial change

Expected Results:  
etc-update should provide the option to merge user added content

packages and versions used: