summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-12-01 03:47:05 +0000
committerJeremy Katz <katzj@redhat.com>2005-12-01 03:47:05 +0000
commit6c8db5470d851891ec9fbdecbfdffb593c4ef337 (patch)
tree9458d37592c1e746f5f9450c31796c560677751c /scripts
parent12c0b79b6a21deb04b0e92cf702ca74e147cc3b6 (diff)
downloadanaconda-6c8db5470d851891ec9fbdecbfdffb593c4ef337.tar.gz
anaconda-6c8db5470d851891ec9fbdecbfdffb593c4ef337.tar.xz
anaconda-6c8db5470d851891ec9fbdecbfdffb593c4ef337.zip
... and save
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-instroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 78ab0a7d8..f1dc4f130 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -1052,7 +1052,7 @@ if [ -n "$NEEDGR" ]; then
fi
echo "Creating SELinux policy..."
-if [ -x /usr/bin/runroot -a -n "$COMPONENT" ]; then
+if [ -x $DESTGR/usr/sbin/semodule -a -x /usr/bin/runroot -a -n "$COMPONENT" ]; then
runroot $COMPONENT --onlyone --arch $ARCH "/usr/sbin/chroot $DESTGR /usr/sbin/semodule -b /usr/share/selinux/targeted/base.pp -n -s targeted"
else
/usr/sbin/chroot $DESTGR /usr/sbin/semodule -b /usr/share/selinux/targeted/base.pp -n -s targeted