Re: [qubes-users] Adding modules to initramfs

2018-11-21 Thread Ivan Mitev

Hi,

On 11/21/18 4:41 PM, mike wrote:

Hi,

I recently replaced the SSD drive in my laptop and the new one turned out to be 
using completely different technology (namely nvme as opposed to sata).
It costed me a lot of fuss to make my system able to boot up from the new drive 
(ie. I did a fresh installation of Qubes just to realise it put the necessary 
nvme driver into initramfs, the lack of which on my original OS had been the 
cause of the issue).

My question is: how can I add necessary drivers to initramfs 
(/boot/efi/EFI/qubes/initramfs-*)? For instance, referring to the scenario 
above, I would like to add nvme kernel modules to initramfs to be able to boot 
the system when I move it to the new drive.


I don't have a UEFI setup to test but the following should work:

mkinitrd --with=yourmodule /path/to/new/initramfs $(uname -r)

(see `man mkinitrd` ; mkinitrd is actually frontend to dracut).

IIRC, you can specify multiple modules with several `--with=` options.

Backup your current initramfs if you use the same filename as you 
current initramfs (eg., "/initramfs-4.14.67-1.pvops.qubes.x86_64.img").
Or alternatively, use a different filename and tweak the config at boot 
time in grub when testing, and then overwrite the old initramfs with the 
new one once everything works as expected.


Ivan





Thanks,
Mike



--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/46f145ea-f2d6-1f1f-72c7-91282917ebdc%40maa.bz.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Adding modules to initramfs

2018-11-21 Thread mike
Hi,

I recently replaced the SSD drive in my laptop and the new one turned out to be 
using completely different technology (namely nvme as opposed to sata).
It costed me a lot of fuss to make my system able to boot up from the new drive 
(ie. I did a fresh installation of Qubes just to realise it put the necessary 
nvme driver into initramfs, the lack of which on my original OS had been the 
cause of the issue).

My question is: how can I add necessary drivers to initramfs 
(/boot/efi/EFI/qubes/initramfs-*)? For instance, referring to the scenario 
above, I would like to add nvme kernel modules to initramfs to be able to boot 
the system when I move it to the new drive.


Thanks,
Mike

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/40f22329-94c3-4dcf-843f-64434b5f9620%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.