| Summary: | mga4 to mga5 upgrade overwrites /etc/exports by empty file; (on-line urpmi change media method) | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | donald taylor <donald.l.taylor> |
| Component: | RPM Packages | Assignee: | Guillaume Rousse <guillomovitch> |
| Status: | RESOLVED OLD | QA Contact: | |
| Severity: | minor | ||
| Priority: | Normal | CC: | guillomovitch, luigiwalser, mageia, mageia, marja11 |
| Version: | 5 | Keywords: | NEEDINFO |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | nfs-utils-1.3.0-6.mga5.src.rpm | CVE: | |
| Status comment: | |||
|
Description
donald taylor
2015-07-28 04:51:22 CEST
CC'ing all who touched nfs-utils between Mga4 and Mga5 release CC:
sysadmin-bugs =>
guillomovitch, luigiwalser, mageia, mageia, marja11 Looking at the nfs-utils package, it's not apparent why it would have replaced the /etc/exports file. It shouldn't have. It's marked as %config(noreplace). Since the default one didn't change, it shouldn't have even created a .rpmnew file with the default contents. Since it's (noreplace), it shouldn't have moved the existing one to an .rpmsave file. It should have just left it alone. (In reply to David Walser from comment #2) > Looking at the nfs-utils package, it's not apparent why it would have > replaced the /etc/exports file. It shouldn't have. It's marked as > %config(noreplace). Since the default one didn't change, it shouldn't have > even created a .rpmnew file with the default contents. Since it's > (noreplace), it shouldn't have moved the existing one to an .rpmsave file. > It should have just left it alone. Maybe something else caused the contents of the /etc/exports file to be deleted? I don't read anything about a .rpmnew, .rpmsave or so in the description. (In reply to donald taylor from comment #0) > So blank file is hard-coded into upgrade rpm, and will overwrite every time? > I shall be doing another upgrade tomorrow on a different installation > of Mageia 5 to Caldron(6) to see if same happens. > Did it, Donald? If so, does it still happen with an upgrade to cauldron(6)? Keywords:
(none) =>
NEEDINFO the --replacefiles option in the urpmi command line is suspicious, even if the option description in rpm man page seems quite harmless: Install the packages even if hey replace files from other, already installed, packages. I wouldn't use this kind of flag for an upgrade, especially without the evidence of a packaging issue requiring to bypass rpm integrity control mechanism. I don't have any evidence it is responsible for the configuration file overwrite, but it makes a perfect culprit here, given we can't blame systemd as usual :)
Guillaume Rousse
2017-05-26 12:14:02 CEST
Status:
NEW =>
ASSIGNED No reproductible test case provided, and nobody reported a similar issue since initial submission, two years ago, hence closing. Status:
ASSIGNED =>
RESOLVED |