On Fri, Nov 04, 2005 at 09:08:06AM -0500, James Olin Oden wrote: > On 11/4/05, Rex Dieter <rdieter@xxxxxxxxxxxx> wrote: > > Akop Pogosian wrote: > > > How am I supposed to deal with this error? > > > > > > # rpm -Uvh filesystem-2.2.1-3.centos.1.i386.rpm > > > Preparing... ########################################### > > > [100%] > > > 1:filesystem ########################################### > > > [100%] > > > error: unpacking of archive failed on file /home: cpio: chown failed - > > > Operation not permitted > > > # rpm -q filesystem > > > package filesystem is not installed > > > # ls -dlL /home > > > drwxr-xr-x 301 root root 8192 Nov 2 18:25 /home > > > > > > /home mounted from NFS server. > > > > You need to allow root acess to the NFS share (ie, export with the > > no_root_squash option). > > > > Or don't NFS mount /home. > > > Actually, what I believe will give him the desired behavior is to add > to /etc/rpm/macros (create it if its not there): > > # A colon separated list of paths where files should *not* be installed. > # Usually, these are network file system mount points. > # > %_netsharedpath /home > > As the comment from /usr/lib/rpm/macros suggests other paths can be > added. This will cause rpm to not delive files that are in these > directories with no error, and ass the macro name implies, this > feature was designed for this very purpose. This sounds like the feature I need, so I put /home and /usr/local in that file. But now my /home and /usr/local symbolic links, which point to NFS-mounted /misc/home and /opt/local, are removed when I convert an RHEL 3 system into CentOS. The conversion involves the upgrade of the "filesystem" package which has CentOS specific version. I traced this problem down to it. I don't know if that's an intended behavior or just a bug. Why would rpm remove paths I just told it to leave alone? -akop