1. delete files using 'rm -f'
2. sudo mkinitcpio -P
3. sudo grub-mkconfig -o /boot/grub/grub.cfg
The 1st step is nothing without the 2nd and 3rd step
]]>Then I re-installed Archlinux on the same partition /dev/nvme0n1p4
and my EFI partition is /dev/nvme0n1p1
I run these: (I follow the installation guide https://wiki.archlinux.org/title/Installation_guide)
mount /dev/(root_partition) /mnt
mount --mkdir /dev/(efi_system_partition) /mnt/boot
mkinitcpio -P
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=(ID)
grub-mkconfig -o /boot/grub/grub.cfg
But after I re-installed Archlinux, which I do not install linux-mainline
I found that there are still linux-mainline img and fallback-img, and boot options of linux-mainline in Advance Options
and I cannot delete them by `rm -f`
What can I do?
]]>