Bug 177061 - Some package should ghost-own /etc/mtab /etc/fstab
Summary: Some package should ghost-own /etc/mtab /etc/fstab
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: setup
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-05 21:15 UTC by Linus Walleij
Modified: 2015-03-05 01:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-23 13:15:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Linus Walleij 2006-01-05 21:15:33 UTC
I don't know for sure how the files /etc/mtab and /etc/fstab 
are created, but I have a strong feeling that it should be owned as
a ghost file by some package, presumable util-linux, thus:

%ghost %{_sysconfdir}/mtab
%ghost %{_sysconfdir}/fstab

Currently it is unowned at creation time:

[root@felicia]# rpm -qf /etc/mtab
the file /etc/mtab does not belong to any package

Perhaps fstab should be owned by the "setup" package, not
sure. I could file another bug for that one.

There could be some to me unknown policy that such files could
be unowned, but never heard of it, so please enlighten me in that
case.

Comment 1 Rahul Sundaram 2006-01-05 21:30:38 UTC

This discussion might be relevant here

https://www.redhat.com/archives/fedora-extras-list/2006-January/msg00183.html

Comment 2 Linus Walleij 2006-01-06 20:14:06 UTC
Actually that post was what got me started. We had some discussion some
time ago which led up to this policy and during that discussion I mentioned
that there are still a few vital files in /etc that are unowned...

Comment 3 W. Michael Petullo 2006-02-17 21:37:10 UTC
This is still an issue in Raw Hide as of 17 Feb 06:

> rpm -qf /etc/fstab
file /etc/fstab is not owned by any package

Comment 4 Karel Zak 2006-02-22 15:59:02 UTC
The /etc/fstab and mtab file are important for more packages. It means it should
be stay there after "rpm -e util-linux". I think the setup package should be own
it (or we can ignore it -- from my point of view it's real cosmetic problem). 

Comment 5 Phil Knirsch 2006-02-23 13:15:36 UTC
Sounds reasonable.

I've added those 2 files to setup with proper entries (%ghost etc) so they won't
ever get overwritten or modified during updates, erases etc.

Read ya, Phil

Comment 6 W. Michael Petullo 2006-06-25 16:45:47 UTC
Confirmed fixed.

Comment 7 Linus Walleij 2006-06-25 19:53:17 UTC
Thanks guys.


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