Skip to content
Browse files

init: limit size on devtmpfs mount

  • Loading branch information...
1 parent 86126ed commit cad5781744451a469d624b5d89852e9a25a59791 @falconindy committed Jun 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 init.c
View
2 init.c
@@ -430,7 +430,7 @@ static void mount_setup(void) { /* {{{ */
mount("run", "/run", "tmpfs", MS_NODEV|MS_NOSUID, "mode=0755,size=10M");
/* ENODEV returned on non-existant FS */
- ret = mount("udev", "/dev", "devtmpfs", MS_NOSUID, "mode=0755");
+ ret = mount("udev", "/dev", "devtmpfs", MS_NOSUID, "mode=0755,size=1024k");
if (ret == -1 && errno == ENODEV) {
/* devtmpfs not available, use standard tmpfs */
mount("udev", "/dev", "tmpfs", MS_NOSUID, "mode=0755,size=1024k");

0 comments on commit cad5781

Please sign in to comment.
Something went wrong with that request. Please try again.