Author: baggins
Date: Fri Jan 20 16:40:12 2006
New Revision: 6869

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- skip filter_chroot() in vserver
  fixes running %pre/%post scripts for packages installed in vserver


Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions      (original)
+++ rc-scripts/trunk/rc.d/init.d/functions      Fri Jan 20 16:40:12 2006
@@ -392,8 +392,13 @@
 # - inside chroot get only those processes, which are inside chroot.
 # - don't filter out pids which do not have corresponding running processes 
(process died etc)
 # (note: some processes like named are chrooted but run outside chroot)
+# - do nothing inside vserver
 filter_chroot()
 {
+       if is_yes "$VSERVER"; then
+               echo $@
+               return
+       fi
        if [ $# -lt 1 -o ! -d /proc/1 ] ; then
                echo $@
                return
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to