From: Michal Suchanek Date: Fri, 11 Feb 2011 15:34:24 +0000 (+0100) Subject: Really set limit on open files for unionfs-fuse X-Git-Tag: debian/3.0_a15-1~4 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=dcbc0dc176cbf8143bc43e55b71535a351febca7;p=live-boot-grml.git 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 ) ;;