Bug 178474 - autofs update overwrites auto.master config file
Summary: autofs update overwrites auto.master config file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: autofs
Version: 4
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jeff Moyer
QA Contact: Brock Organ
URL:
Whiteboard:
: 178883 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-20 21:02 UTC by Phil Schaffner
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-01-24 22:00:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Phil Schaffner 2006-01-20 21:02:02 UTC
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):
autofs-4.1.4-15

How reproducible:
Didn't try

Steps to Reproduce:
1. update autofs rpm
2.
3.
  

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.

Additional info:

Comment 1 Jeff Moyer 2006-01-24 15:29:54 UTC
Ouch.  We'll get this fixed.

Comment 2 Jeff Moyer 2006-01-24 15:38:59 UTC
%config(noreplace,missingok) /etc/auto.master

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?

Comment 3 Phil Schaffner 2006-01-24 21:50:55 UTC
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
 #/smb  /etc/auto.smb
-/misc  /etc/auto.misc
 /net   /etc/auto.net

QED



Comment 4 Jeff Moyer 2006-01-24 22:00:26 UTC
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.

Comment 5 Jeff Moyer 2006-01-25 13:11:29 UTC
*** Bug 178883 has been marked as a duplicate of this bug. ***

Comment 6 Phil Schaffner 2006-01-25 18:22:48 UTC
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.

Comment 7 Phil Schaffner 2006-01-25 21:54:20 UTC
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
the issue.



Note You need to log in before you can comment on or make changes to this bug.