[SCM] live-boot branch, debian-next, updated. debian/3.0_a14-1-6-g2f4baa7

Michal Suchanek hramrach at centrum.cz
Sat Feb 12 19:53:01 UTC 2011


The following commit has been merged in the debian-next branch:
commit 9c487bdd92e195b1d9d3cbc5af105d49519ef79a
Author: Michal Suchanek <hramrach at centrum.cz>
Date:   Fri Feb 11 16:34:24 2011 +0100

    Really set limit on open files for unionfs-fuse

diff --git a/scripts/live b/scripts/live
index 9460eaa..3888f03 100755
--- a/scripts/live
+++ b/scripts/live
@@ -1471,7 +1471,8 @@ setup_unionfs ()
 			unionfs-fuse)
 				unionmountopts="-o cow -o noinitgroups -o default_permissions -o allow_other -o use_ino -o suid"
 				unionmountopts="${unionmountopts} ${unionrw}=RW:${unionro}=RO"
-				( ulimit -n 16384 ; unionfs-fuse ${unionmountopts} "${unionmountpoint}" ) && \
+				( sysctl -w fs.file-max=391524 ; ulimit -HSn 16384
+				unionfs-fuse ${unionmountopts} "${unionmountpoint}" ) && \
 					( mkdir -p /dev/.initramfs/varrun
 				pidof unionfs-fuse >> /dev/.initramfs/varrun/sendsigs.omit || true )
 				;;

-- 
live-boot



More information about the debian-live-changes mailing list