[PATCH] stage1 (init): Make /tmp tmpfs large enough to hold install.img (#540146)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Be default mount makes tmpfs mounts 1/2 RAM size, on 256MB machines, where
part of the RAM is taken up by a shared framebuffer, this results in a
/tmp which is to small to hold install.img, resulting in install failure
when trying to do for example a network installation.

This patch fixes this by specifying a size for /tmp, it uses 250MB which
should be plenty for now and the forseeable future.
---
 loader/init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader/init.c b/loader/init.c
index e3bb9b0..67c9d62 100644
--- a/loader/init.c
+++ b/loader/init.c
@@ -779,7 +779,7 @@ int main(int argc, char **argv) {
         mkdir("/tmp", 0755);
 
         printf("mounting /tmp as tmpfs... ");
-        if (mount("none", "/tmp", "tmpfs", 0, NULL))
+        if (mount("none", "/tmp", "tmpfs", 0, "size=250m"))
             fatal_error(1);
         printf("done\n");
 
-- 
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux