packages: util-vserver/util-vserver-initpost.sh - don't set RPM_SKIP_AUTO_R...

blues blues at pld-linux.org
Wed Nov 4 09:43:35 CET 2009


Author: blues                        Date: Wed Nov  4 08:43:35 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- don't set RPM_SKIP_AUTO_RESTART=yes - why should it behave different than
  regular system?
- skip pam_limits in pam setup:
http://linux-vserver.org/Frequently_Asked_Questions#When_using_nice_and_su_.27for_example.2C_in_the_updatedb_cron_job.29.2C_I_get:_su:_Permission_denied._What_does_it_mean.3F

---- Files affected:
packages/util-vserver:
   util-vserver-initpost.sh (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/util-vserver/util-vserver-initpost.sh
diff -u packages/util-vserver/util-vserver-initpost.sh:1.2 packages/util-vserver/util-vserver-initpost.sh:1.3
--- packages/util-vserver/util-vserver-initpost.sh:1.2	Sat Jan 14 11:39:41 2006
+++ packages/util-vserver/util-vserver-initpost.sh	Wed Nov  4 09:43:29 2009
@@ -41,13 +41,16 @@
 popd >/dev/null
 
 pushd "$vdir" &>/dev/null
-	if [ -f etc/sysconfig/rpm ]; then
-		subst etc/sysconfig/rpm 's!^#RPM_SKIP_AUTO_RESTART=.*!RPM_SKIP_AUTO_RESTART=yes!'
-	fi
-
 	# for future. right now SysVinit is not created at build stage
 	if [ -f etc/inittab ]; then
 		# disable mingetty respawn
 		subst etc/inittab 's!^\([^#].*:respawn:.* tty\)!#\1!'
 	fi
+
+	# pam_limits causes problems
+	# http://linux-vserver.org/Frequently_Asked_Questions#When_using_nice_and_su_.28for_example.2C_in_the_updatedb_cron_job.29.2C_I_get:_su:_Permission_denied._What_does_it_mean.3F
+	for file in /etc/pam.d/*; do
+		subst ${file} 's!^\([^#].*pam_limits.so\)!#\1!'
+	done
+
 popd >/dev/null
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/util-vserver/util-vserver-initpost.sh?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list