Red Hat Bugzilla – Bug 116106
Update fails with an rpm unpack error installing the package under selinux
Last modified: 2007-04-18 13:03:16 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Description of problem:
When updating failure. Running rpm manually:
error: unpacking of archive failed on file /selinux: cpio: lsetfilecon
updated under 2.6.2-1.85 with selinux. Install succeeded under same
kernel with selinux=0 init=/bin/sh
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run selinux compatible kernel from rawhide
2. rpm -Uvh SysVinit-2.85-17.i386.rpm
Actual Results: Fails with rpm unpacking error error
Expected Results: Succeeds
ls -alZ / reveals no context set for /selinux and /
retried rpm -Uvh in selinux land still fails
This may be an rpm bug in handling contexts, or you just may not be
able to do this when under selinux.
At least /sbin/init and friends are still on the filesystem.
Change component to rpm.
Talked to rjc and it is due to /selinux being unlabeled, same issue
will occur for filesystem upgrade (/proc /sys /initrd likewise)
I believe this problem is solved.