[Bug 331731] Review Request: ltsp-server - LTSP5 server-side configurations and setup scripts

bugzilla at redhat.com bugzilla at redhat.com
Tue Oct 30 22:53:48 UTC 2007


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: Review Request: ltsp-server - LTSP5 server-side configurations and setup scripts


https://bugzilla.redhat.com/show_bug.cgi?id=331731





------- Additional Comments From wtogami at redhat.com  2007-10-30 18:53 EST -------
- Refuse to install the chroot with anaconda if selinux is enforcing.
- Remove rpmdb locks after anaconda is done installing.

--- ltsp-build-client.orig      2007-10-30 18:37:45.000000000 -0400
+++ ltsp-build-client   2007-10-30 18:52:46.000000000 -0400
@@ -32,6 +32,15 @@
    esac
 done
 
+# Anaconda chroot install will fail if selinux is enforcing
+# we need to port the workaround from mock...
+if [ -a /usr/sbin/getenforce ]; then
+   if [ `/usr/sbin/getenforce` == "Enforcing" ]; then
+      echo "ERROR: Cannot anaconda install chroot while SELinux is enforcing."
+      echo "Please use 'setenforce 0'"
+      echo "Do not forget to enable it after anaconda is done."
+   fi
+fi
 
 if [ "$LTSP_ROOTPATH" ]; then
    mkdir -p $LTSP_ROOTPATH ||  echo "ERROR: could not create directory
$LTSP_ROOTPATH";
@@ -43,3 +52,5 @@
        --rootpath $LTSP_ROOTPATH --kickstart=$LTSP_KICKSTART
 fi
 
+# remove locks: i386 chroot install on x86_64 would have incompatible locks
+rm -f $LTSP_ROOTPATH/var/lib/rpm/__db*



-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the Fedora-package-review mailing list