linux - yum complains about no diskspace in a diskless system with initramfs -


i wonder had such experience. using diskless linux servers. before use ramdisk, trying make diskless server ramfs, , created rootfs image , booted server.

then issue here can not install anything, because yum complains no disk space. quite true there no disk no space, ramfs, can update linux configuration pass issue?

df -kh /  filesystem            size  used avail use% mounted on -                        0     0     0   -  / yum install w3m -y loaded plugins: fastestmirror  loading mirror speeds cached hostfile excluding packages packages enterprise linux 5 - x86_64 finished setting install process resolving dependencies --> running transaction check ---> package w3m.x86_64 0:0.5.1-18.el5 set updated --> finished dependency resolution  dependencies resolved      ====================================================================================================================  package                 arch                       version                             repository              size ==================================================================================================================== installing:  w3m                     x86_64                     0.5.1-18.el5                      os                     1.1 m  transaction summary ==================================================================================================================== install       1 package(s) upgrade       0 package(s)  total download size: 1.1 m downloading packages:   error downloading packages:   w3m-0.5.1-18.el5.x86_64: insufficient space in download directory /var/cache/yum/os/packages     * free   0      * needed 1.1 m 

update: checked yum code, using statvfs system call check diskspace. other creating "real disk", have no idea how can bypass issue.

i have similar use case. found article: reason yum continued check free disk space before downloading

diskspacecheck=0 

i decided workaround:

yum clean mount -t tmpfs -o size=5g tmpfs /var/cache/yum 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -