Where did fallback initramfs go?

Hey,

using mkinitcpio and grub (yep, I know, I know…)

I don’t think (:sweat_smile:) I modified anything, but after my last system update (well…maybe) I noticed the fallback initramfs entries on my grub menu are gone

this is the output of /etc/mkinitcpio.d/linux.preset :

# mkinitcpio preset file for the 'linux' package

#ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux"
#ALL_kerneldest="/boot/vmlinuz-linux"

PRESETS=('default')
#PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux.img"
#default_uki="/efi/EFI/Linux/arch-linux.efi"
#default_options="--splash /usr/share/systemd/bootctl/splash-arch.bmp"

#fallback_config="/etc/mkinitcpio.conf"
#fallback_image="/boot/initramfs-linux-fallback.img"
#fallback_uki="/efi/EFI/Linux/arch-linux-fallback.efi"
#fallback_options="-S autodetect"

(which I did not modify…)

so, I guess that’s why?

Could it be that an update did modify this file without generating a .pacnew file first ??

or could it be that I messed something else up and just don’t remember? :grimacing:

It is a change in the latest version of mkinitcpio, fallbacks are no longer generated by default.

interesting… so no .pacnew file to review because the previous file wasn’t modified by the user ?
or is it inside the mkinitcpio.conf file that the change occurred ?

Yes. This is probably the reason you didn’t get a pacnew for that.

I guess I’ll read the wiki in order to get it back… well… or not :squinting_face_with_tongue:

thanks for the heads up !!

You can just reverse the comments on those two lines if you want it back.

and maybe something in there too ?

#fallback_config="/etc/mkinitcpio.conf"
#fallback_image="/boot/initramfs-linux-fallback.img"
#fallback_uki="/efi/EFI/Linux/arch-linux-fallback.efi"
#fallback_options="-S autodetect"

You can uncomment fallback_image and fallback_options to put it back the way it was before.

maybe that’s not enough ?

==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
==> WARNING: No image or UKI specified. Skipping image 'fallback'

Can you share the preset file now?

# mkinitcpio preset file for the 'linux' package

#ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux"
#ALL_kerneldest="/boot/vmlinuz-linux"

#PRESETS=('default')
PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux.img"
#default_uki="/efi/EFI/Linux/arch-linux.efi"
#default_options="--splash /usr/share/systemd/bootctl/splash-arch.bmp"

#fallback_config="/etc/mkinitcpio.conf"
#fallback_image="/boot/initramfs-linux-fallback.img"
#fallback_uki="/efi/EFI/Linux/arch-linux-fallback.efi"
fallback_options="-S autodetect"

You need to uncomment fallback_image

i guess… cheers

may I ask about fallback_uki="/efi/EFI/Linux/arch-linux-fallback.efi" ?

Unless you are using UKIs, which you probably aren’t, you don’t need that line.

I imagine I shouldn’t be asking if I was… :sweat_smile:

thanks again!

cheers!