SELinux error with yum --installroot

Bob Kashani bobk at ocf.berkeley.edu
Tue Jan 4 06:38:08 UTC 2005


On Mon, 2005-01-03 at 11:41 -0500, Paul Nasrat wrote:
> On Wed, Dec 29, 2004 at 08:27:09PM -0800, Bob Kashani wrote:
> > When I run:
> > 
> > yum -y --installroot=/testroot groupinstall "Base"
> 
> Do you have /selinux /proc and /sys mounted in your chroot?
> 
> mount --bind /proc /testroot/proc/
> mount --bind /selinux /testroot/selinux/
> mount --bind /sys /testroot/sys/

Thanks Paul. That was it.

I was only mounting /proc...so when I mounted /selinux & /sys almost all
of my errors went away. 

The only two errors that I haven't been able to fix are:

/sbin/ldconfig: Can't open configuration file /etc/ld.so.conf:
Permission denied
/sbin/ldconfig: Can't remove old temporary cache file /etc/ld.so.cache~:
Permission denied

and

Installing: kernel 100 % done 101/111
ls: readlink:: No such file or directory
ls: file: No such file or directory
ls: expected: No such file or directory
Installing: selinux-policy-targeted 100 % done 102/111

coreutils and file are being installed early on so readlink and file
should be available by the time the kernel is installed. I have no idea
what 'expected' is? Is this just some random output since something
failed?

Bob

-- 
Bob Kashani
http://www.ocf.berkeley.edu/~bobk/garnome




More information about the fedora-selinux-list mailing list