Red Hat Bugzilla – Bug 178474
autofs update overwrites auto.master config file
Last modified: 2007-11-30 17:11:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8) Gecko/20051202 CentOS/1.5-1.c4.centos4 Firefox/1.5
Description of problem:
Recent autofs update overwrote /etc/auto.master file with one not checking auto.misc without creating a .rpmsave - broke mounts specified in modified auto.misc. Don't see this in the changelog. If that was the intended behavior is should be documented. This might not be considered a bug as (IIRC) the version n-1 auto.master had auto.misc uncommented out-of-the-box, unlike earlier versions, so the replaced file was probably un-modified.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. update autofs rpm
Actual Results: /etc/auto.master overwritten with one having different functionality without backing up the original, and with no obvious changelog entry.
Expected Results: Don't change the behavior of the package without at least documenting the change. Saving the previous version of the config file as a .rpmsave is highly desirable - at least flags that a change has been made.
Ouch. We'll get this fixed.
this is in the spec file. I'm not sure how it could have replaced the
auto.master map. We are unable to reproduce this internally. Can you?
Yes. Here's the procedure:
1. Install FC4 (e.g. Workstation install on VMware)
2. reboot, firstboot, login, su - root, test autofs
3. # cp /etc/auto.master auto.master_orig
4. # yum update autofs
5. # ll /etc/auto.*
-rw-r--r-- 1 root root 322 Jan 18 21:03 /etc/auto.master
-rw-r--r-- 1 root root 1117 Jan 24 21:29 /etc/auto.misc
-rw-r--r-- 1 root root 581 Apr 25 2005 /etc/auto.misc_orig
-rwxr-xr-x 1 root root 1274 Jan 18 21:03 /etc/auto.net
-rwxr-xr-x 1 root root 538 Jan 18 21:03 /etc/auto.smb
6. # diff -u auto.master_orig /etc/auto.master
--- auto.master_orig 2006-01-24 21:28:05.000000000 -0500
+++ /etc/auto.master 2006-01-18 21:03:23.000000000 -0500
@@ -7,5 +7,4 @@
# For details of the format look at autofs(5).
#/misc /etc/auto.misc --timeout=60
OK, I'm very sorry that I didn't read the bug report closely enough. Now I see
what you're saying.
This is the expected behaviour. Since the default auto.misc file was primarily
used to automount the cdrom, and there exist better methods to do so today, I
was asked to remove this from the default autofs setup.
I'm not sure where you would like this to be documented. Perhaps it should have
been mentioned in the mail to fedora-announce.
I'll close this as not a bug. If you have any suggestions on where you'd like
the documentation to appear, please feel free to update the bug.
Again, sorry for the misunderstanding.
*** Bug 178883 has been marked as a duplicate of this bug. ***
Something that changes the default behavior of a package should at least be
noted in the changelog. If I read the Bug 178883 report correctly, the
auto.master file had been modified. Will test that case.
Updating autofs on an FC4 fresh install with a modified auto.master did create
auto.master.rpmnew and did not clobber the modified file, the desired behavior.
A changelog entry on the different default behavior should suffice to deal with