You are not logged in.

#1 2013-03-28 14:12:24

alkemir
Member
Registered: 2010-11-12
Posts: 7

How to update EFI partition after kernel upgrade?

Hi all,

after a kernel upgrade my modules are gone, and of course I need to reboot to
be able to load the new modules. The thing is, before I reboot I need to copy my
new kernel and initramfs to the EFI partition, which requires me loading the vfat module,
which is now gone...

As far as I can tell, I am going to need a secondary OS (or live cd) to solve this....,
I think this is a design bug... any ideas?

Offline

#2 2013-03-28 15:44:12

alkemir
Member
Registered: 2010-11-12
Posts: 7

Re: How to update EFI partition after kernel upgrade?

Luckily I had tried to recompile the kernel a week ago and had a copy of the modules in another directory.

Otherwise I would be in trouble, this should be solved.

Offline

#3 2013-03-28 16:40:56

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: How to update EFI partition after kernel upgrade?

Add the efi partition to fstab, so it gets mounted at boot time. If your bootloader supports non-.efi named kernels (rEFInd does), you could simply bind the directory you put the kernels into onto /boot at boot time, so that you don't need to manually copy the kernel + images each time you update it.

For example, I have the following in my fstab:

UUID=DA2E-688C                            /mnt/efi                                  vfat defaults                                    0 2
/mnt/efi/EFI/arch                         /boot                                     none bind                                        0 0

Last edited by WorMzy (2013-03-28 16:41:34)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2013-03-28 17:25:59

alkemir
Member
Registered: 2010-11-12
Posts: 7

Re: How to update EFI partition after kernel upgrade?

Thank you, it is a solution which I will implement, though maybe a warning of some sort should be made so this doesnt happen to unwary users.

Offline

Board footer

Powered by FluxBB