You are not logged in.

#1 2023-03-03 13:56:08

Firestar
Member
From: Beijing, China
Registered: 2021-07-19
Posts: 80
Website

Old kernel still exists in /boot

I had linux-mainline (AUR) installed on an old Archlinux

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?

Last edited by Firestar (2023-03-03 14:18:17)


Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.

Offline

#2 2023-03-03 14:11:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,540

Re: Old kernel still exists in /boot

Of course they still exist if you didn't wipe that partition. Why can't you delete them? Just saying it doesn't work doesn't help.

Offline

#3 2023-03-03 14:24:19

Firestar
Member
From: Beijing, China
Registered: 2021-07-19
Posts: 80
Website

Re: Old kernel still exists in /boot

I found out one solution

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


Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.

Offline

#4 2023-03-03 17:38:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,628

Re: Old kernel still exists in /boot

Which is the way to do it. Please mark as [SOLVED] by editing the title in your first post.

Online

Board footer

Powered by FluxBB