Booting a LiveOS image fully into RAM

Hi all,

I have USB media installed with a bootable LiveOS image from an .iso file of Fedora Silverblue 35.

(Fetched from
https://download.fedoraproject.org/pub/fedora/linux/releases/35/Silverblue/x86_64/iso/Fedora-Silverblue-ostree-x86_64-35-1.2.iso)

I would like to append the right command line parameter so as to be able to boot the LiveOS and then remove the USB disk.

Which (or both? ) of the the following kernel command line parameters do address this use case?

  • rd.live.ram=1
  • rd.writable.fsimg=1

This parameter is presented in the dracut command line parameters man page:

https://man7.org/linux/man-pages/man7/dracut.cmdline.7.html

Section: Booting live images
Dracut offers multiple options for live booted images:

rd.live.ram=1
Copy the complete image to RAM and use this for booting. This is useful when the image resides on, e.g., a DVD which needs to be ejected later on.

rd.writable.fsimg=1
Enables writable filesystem support. The system will boot with a fully writable (but non-persistent) filesystem without snapshots (… ).
This implies that the whole image is copied to RAM before the boot continues.

           Note
           There must be enough free RAM available to hold the complete image. This method is very suitable for diskless boots

Thanks

2 Likes

For now adding only this parameter seems to be enough to load to RAM.
Testing it more thoroughly is under way