diff options
| author | Michal Suchanek <hramrach@centrum.cz> | 2011-02-11 16:34:24 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:59:21 +0100 |
| commit | dcbc0dc176cbf8143bc43e55b71535a351febca7 (patch) | |
| tree | 15313e15d646aa4c9085bddf19a20aa591331194 /scripts | |
| parent | 9049b9cbd7f5efa68dec32963827a1326c39f5f3 (diff) | |
| download | live-boot-dcbc0dc176cbf8143bc43e55b71535a351febca7.tar.gz live-boot-dcbc0dc176cbf8143bc43e55b71535a351febca7.zip | |
Really set limit on open files for unionfs-fuse
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) ;; |
