[REQUEST] Switch Initramfs instead of rebuilding
Instead of rebuilding the initrd every time, Can it instead be switched based on the current mode, say by having a symlink in /boot/inirtd-{mode} and simply switch it with the pregenerated initrd, renaming it to initrd-{previous_mode}
Hey @nirvairu I made several updates related to prebuilding initramfs but I want to be sure about one issue having multiple initrds takes up space in /boot. Is this something we should factor into the design.
Hi @Binit06, correct me if i am wrong. There are 3 modes (integrated/hybrid/nvidia) so at max, we will have 3 initramfs. And considering 1 initramfs takes around 20 mb, that would be a total for 60 mb storage space required in total. so storage space might not be an issue, right?
Hey there @Ridhubharan . Yeah that was a miscalculation from my part. I calculated the size earlier and seemed to have the added the size of all the kernel versions. The initramfs size comes to around 50 mb size each so it will take about 150 to 160 mb of space.