You are not logged in.

#1 2019-10-28 03:00:50

Lemniskett
Member
Registered: 2019-10-28
Posts: 9

Deleting boot entries in systemd-boot

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

#2 2019-10-28 03:13:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Deleting boot entries in systemd-boot

man efibootmgr | less -p delete

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-10-28 08:26:40

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,369
Website

Re: Deleting boot entries in systemd-boot

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

#4 2021-10-07 06:06:58

greensam88
Member
Registered: 2021-10-07
Posts: 1

Re: Deleting boot entries in systemd-boot

sudo rm /boot/loader/entries/Arch-hardened.conf
sudo rm /boot/loader/entries/Arch-lts.conf

Essentially 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 list

to find the filepath of the extra boot entries, than deleting it.

Last edited by greensam88 (2021-10-07 06:07:48)

Offline

#5 2021-10-07 12:31:12

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Deleting boot entries in systemd-boot

Closing this old topic.

Offline

Board footer

Powered by FluxBB