-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rd.live.ram=1 may fill up /run if tmpfs is too small #2550
Comments
This is also a problem when you have It used to run fine on f38 but no longer works on f39. |
If you are experiencing this issue and need to temporarily fix it until dracut has a more permanent solution, you can create a custom dracut module, that remounts /run at the size you need like this: File: module-setup.sh, executable:
File run-remount.sh, executable:
Then when dracut runs it will pick up the new module and during boot remount /run with the size of 16GB. |
Perhaps #2551 |
I tested the #2551 and it does not solve the problem with rd.writable.fsimg=1 In 90dmsquash-live module in dmsquash-live-root.sh
This only takes care of the squashfs.img But writable.fsimg which is a little lower in the file does not use it and the cp command will fail:
|
Describe the bug
Many distros now cap the total size of the
/run
filesystem at a relatively small percentage of RAM. For example, Fedora Security Live F38 on a VM with 4 GB of RAM caps/run
at only 779.89 MB. This is not enough to contain the complete ISO whenrd.live.ram=1
is requested. When dracut writes the rootfs image to/run/initramfs/squashed.img
, it fills up/run
and fails the boot.Distribution used
Fedora Security Live F38
Dracut version
059-2.fc38
Init system
systemd-253.2-1.fc38
To Reproduce
Fedora-Security-Live-x86_64-38-1.6.iso
e
to edit the boot options. Addrd.live.ram=1 rd.break rd.shell
to the end of thelinux
options line. Pressctrl-x
to boot.mount
can't recognize the filesystem.no space left on device
error occurs. Also verify that/run/initramfs/squashed.img
is smaller than it should be.Expected behavior
I believe that dracut dmsquash-live and livenet should either:
squashed.img
that is large enough to contain it; OR/run
so that it is large enough to containsquashed.img
.Without changes to dracut, distros that want to support
rd.live.ram
will need to ensure that/run/initramfs
is large enough.Additional context
Requesting
rd.live.ram=1
on a system with not enough memory may put the system under severe memory pressure. #2344 adds the capability to check for this, and we probably don't need to second-guess this check.The
tmpfs(5)
default size is 50% of memory. The default size should be large enough on most modern hardware to contain a live image of "reasonable" size. It is clear that some distos opt for a lowersize
limit for/run
.See also downstream bug RH-2035641
The text was updated successfully, but these errors were encountered: