]> git.ipfire.org Git - thirdparty/dracut.git/commit
feat(livenet): add memory size check depending on live image size
authorThomas Blume <Thomas.Blume@suse.com>
Mon, 17 Apr 2023 13:41:07 +0000 (15:41 +0200)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Fri, 7 Jul 2023 12:24:10 +0000 (14:24 +0200)
commit52351cfa049a9594d539e6a5337d591e8039ab80
tree3fad0b7aa5700402d996a357a354cfe18eb8ad74
parent15d4f60eb1f9f704df16287ccf7bc19755a73875
feat(livenet): add memory size check depending on live image size

For writeable live images, the memory must hold the complete image.
That means it must be at least the size of the image plus some RAM
necessary to run processes.
With too small RAM, the OOM Killer steps in and makes the boot hang.
This patch lets the system go into the emergency shell instead.

The default minimum RAM after subtracting the live image size is set to 1G.
The parameter rd.minmem is added to modify this.
man/dracut.cmdline.7.asc
modules.d/90dmsquash-live/dmsquash-live-root.sh
modules.d/90livenet/livenetroot.sh
modules.d/99base/dracut-lib.sh