envycontrol icon indicating copy to clipboard operation
envycontrol copied to clipboard

[REQUEST] Switch Initramfs instead of rebuilding

Open nirvairu opened this issue 3 months ago • 3 comments

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}

nirvairu avatar Oct 09 '25 14:10 nirvairu

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.

Binit06 avatar Dec 01 '25 09:12 Binit06

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?

Ridhubharan avatar Dec 27 '25 11:12 Ridhubharan

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.

Binit06 avatar Dec 27 '25 13:12 Binit06