[5987] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: why /etc/HOSTNAME was blown away during 3.03->4.0

daemon@ATHENA.MIT.EDU (Erik Troan)
Mon Nov 25 11:03:16 1996

Date: Mon, 25 Nov 1996 10:52:17 -0500 (EST)
From: Erik Troan <ewt@redhat.com>
To: redhat-list@redhat.com
cc: rpm-list@redhat.com, matyi@wierdlmpc.msci.memphis.edu
In-Reply-To: <"hBYPv3.0.iu1.UBwbo"@mail2.redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Sat, 23 Nov 1996, Wierdl Mate wrote:

> 
> There were many people who complained that their /etc/hosts,
> /etc/HOSTNAME, etc., files were not rpmsaved during the RH 3.03 -> 4.0
> upgrade. It seems that rpm still does not know about these files:
> 	$ rpm -qf /etc/HOSTNAME
> 	file /etc/HOSTNAME is not owned by any package
> 	$ rpm -qf /etc/hosts
> 	file /etc/hosts is not owned by any package 
> So it seems  they will not be rpmsaved during the next RH upgrade
> either. 

Exactly. I need to make my install a bit smarter about this.

> %files
> %config /etc/qmail/control 
> 
> where /etc/qmail/control is a directory. It turns out that all the
> files in /etc/qmail/control get created under %post. Will these files
> get rpmsaved during upgrade? Glint certainly does not show any files
> from /etc/qmail/control when I query the package. Or, 
> 	$ rpm -qf /etc/qmail/control/me
> 	file /etc/qmail/control/me is not owned by any package

Those files will be blown away during an install. If they aren't in a packages
file list, they're history.

> Would it make any difference if I listed the files of
> /etc/qmail/control one by one under %config (but I still create the
> files under %post)?

Maybe... the real problem here is RPM compares the filelists to each other
to see what needs to be saved. If you have "/etc/qmail/control/foo" as a
0 byte file in each package, rpm will save the user's version of the file
and then your postinstall will happily blow it away :-(

Erik

-------------------------------------------------------------------------------
|       I told you I'm not very bright -- Sugar in "Some Like It Hot"         |
|                                                                             |
|       Erik Troan   =   ewt@redhat.com     =    ewt@sunsite.unc.edu          |


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post