From dcbc0dc176cbf8143bc43e55b71535a351febca7 Mon Sep 17 00:00:00 2001 From: Michal Suchanek Date: Fri, 11 Feb 2011 16:34:24 +0100 Subject: [PATCH] Really set limit on open files for unionfs-fuse --- scripts/live | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) ;; -- 2.1.4