3 ms·
Even better, you can just put the whole root fs into the initramfs image, and never pivot to another root filesystem during boot. This also allows you to netboo
by gsliepen 3y ago
Even better, you can just put the whole root fs into the initramfs image, and never pivot to another root filesystem during boot. This also allows you to netboot a whole OS.
- ylyn 3y agoOne pitfall of this is that the decompressed contents of your initramfs must fit within half of your physical RAM since Linux decompresses it into a tmpfs. Or if you set rootfstype=ramfs, then you can take up to all of physical RAM, but ramfs isn't swappable.
- ahepp 3y agoWait I'm not following, why must the decompressed contents of the initramfs fit within half of physical ram? Initramfs (and tmpfs) are swappable right? As you say, ramfs is the one that isn't swappable. So if your initramfs is "to big" can't it just be swapped out?
- manuel_w 3y ago> Wait I'm not following, why must the decompressed contents of the initramfs fit within half of physical ram? It makes sense if you replace "initramfs" with "initrd": > One pitfall of this is that the decompressed contents of your ~initramfs~ _initrd_ must fit within half of your physical RAM since Linux decompresses it into a tmpfs. > Or if you set rootfstype=ramfs, then you can take up to all of physical RAM