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...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments

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:

sys-apps/portage-3.0.28-r1
x11-drivers/nvidia-drivers-495.44-r2
x11-drivers/nvidia-drivers-470.86-r1