You are not logged in.
Pages: 1
Topic closed
How to delete a boot entry in systemd-boot? i need to delete ArchLinux LTS and Arch Linux Zen from the boot menu
Here's the output of "bootctl list"
Boot Loader Entries:
title: Arch Linux (default)
id: Arch
source: /boot/loader/entries/Arch.conf
linux: /vmlinuz-linux
initrd: /initramfs-linux.img
options: root=PARTUUID=29475b4e-deae-4abb-bb87-fa39a3d21f7c rw
title: Arch Linux hardened
id: Arch-hardened
source: /boot/loader/entries/Arch-hardened.conf
linux: /vmlinuz-linux-hardened
initrd: /initramfs-linux-hardened.img
options: root=PARTUUID=29475b4e-deae-4abb-bb87-fa39a3d21f7c rw
title: ArchLinux LTS
id: Arch-lts
source: /boot/loader/entries/Arch-lts.conf
linux: /vmlinuz-linux-lts (No such file or directory)
initrd: /initramfs-linux-lts.img (No such file or directory)
options: root=PARTUUID=29475b4e-deae-4abb-bb87-fa39a3d21f7c rw
title: Arch Linux Zen
id: Arch-zen
source: /boot/loader/entries/Arch-zen.conf
linux: /vmlinuz-linux-zen (No such file or directory)
initrd: /initramfs-linux-zen.img (No such file or directory)
options: root=PARTUUID=29475b4e-deae-4abb-bb87-fa39a3d21f7c rw
title: Windows Boot Manager
id: auto-windows
source: /sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7->
title: Reboot Into Firmware Interface
id: auto-reboot-to-firmware-setup
source: /sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-> Offline
man efibootmgr | less -p deleteOffline
Just remove the source of those entries.
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
sudo rm /boot/loader/entries/Arch-hardened.conf
sudo rm /boot/loader/entries/Arch-lts.confEssentially all you're doing is locating the files in the boot loader, and deleting it, then restarting for it to take effect.
The process is to
bootctl listto find the filepath of the extra boot entries, than deleting it.
Last edited by greensam88 (2021-10-07 06:07:48)
Offline
Closing this old topic.
Offline
Pages: 1
Topic closed