Le 29/11/2010 13:44, giggzounet a écrit : > Le 29/11/2010 13:41, Nico Kadel-Garcia a écrit : >> On Mon, Nov 29, 2010 at 7:38 AM, giggzounet <giggzounet@xxxxxxxxx> wrote: >>> Le 29/11/2010 12:44, Gabriel Tabares a écrit : >>>>> a very easy. But what will yum/RPM do during the next update ? Will it >>>>> overwrite the file ? Will it write on display that the file was modified >>>>> by an user (as under debian) ? >>>>> >>>> >>>> As far as I can tell, if the file is marked as a configuration file in >>>> the RPM, it will be left alone and the new configuration file will be >>>> renamed to file.rpmnew. If the file is not marked as a configuration >>>> file, it will be overwritten. >>>> >>>> Regards, >>>> >>>> Gabriel >>> >>> ok ths for your answer! >>> >>> where in the rpm package can I find if the file is a configuration file >>> or not ? >> >> You need the .spec file from the SRPM, or you could install it and test it. > > ok I will take a look in the SRPM. > > thx mhhhhhhhh I don't know well the rpm system...so here is the .spec: # $Id: openib.spec 6922 2006-05-04 12:49:48Z vlad $ Summary: OpenIB Infiniband Driver Stack Name: openib Version: 1.4.1 Release: 5%{?dist} License: GPL/BSD Url: http://www.openfabrics.org/ Group: System Environment/Base Source1: openib-1.3.2-ifup-ib Source2: openib-1.0-openib.conf Source3: openib-1.0-openibd.init Source4: openib-fixup-mtrr.awk Source8: openib-90-ib.rules BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #ExclusiveArch: i386 x86_64 ia64 ppc ppc64 BuildArch: noarch Obsoletes: kernel-ib <= 1.0-1 Requires(post): chkconfig %description User space initialization scripts for the kernel InfiniBand drivers %prep %build %install rm -rf ${RPM_BUILD_ROOT} install -d ${RPM_BUILD_ROOT}%{_initrddir} install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/ofed install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/network-scripts install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d install -m 0755 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/network-scripts/ifup-ib install -m 0644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/ofed/openib.conf install -m 0755 %{SOURCE3} ${RPM_BUILD_ROOT}%{_initrddir}/openibd install -m 0644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/ofed/fixup-mtrr.awk install -m 0644 %{SOURCE8} ${RPM_BUILD_ROOT}/etc/udev/rules.d/90-ib.rules %clean rm -rf ${RPM_BUILD_ROOT} %post -n openib if [ $1 = 1 ]; then /sbin/chkconfig --add openibd fi %preun -n openib if [ $1 = 0 ]; then /sbin/chkconfig --del openibd fi %files %defattr(-,root,root,-) %dir %{_sysconfdir}/ofed %config(noreplace) %{_sysconfdir}/ofed/openib.conf %{_sysconfdir}/ofed/fixup-mtrr.awk %{_initrddir}/openibd /etc/udev/rules.d/90-ib.rules %{_sysconfdir}/sysconfig/network-scripts/ifup-ib ############# END ############## I'm interested in the /etc/sysconfig/network-scripts/ifup-ib file. Is there a configuration file or not ? Thx a lot. Guillaume _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos