[SOLVED] Not booting after systemd-boot mess

crazywolf13

Member
Oct 15, 2023
66
8
13
Hi

I have a bit of a mess after Proxmox 9.0 upgrade.

I removed systemd-boot package as suggested in the upgrade wiki, which however broke all my lxcs network (https://forum.proxmox.com/threads/c...network-problem-after-pve-9-0-upgrade.169568/), so I tried reinstalling that package, which then fcked up my efi bootloader.


Currently I have the following system:

I removed that systemd-boot again which cleanup all it's bootfiles by itself.

I ran the following commands:

Code:
apt remove -y systemd-boot
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=proxmox --recheck
update-grub

efibootmgr status

Makefile:
efibootmgr
root@lenovo4:~# efibootmgr
BootCurrent: 0009
Timeout: 2 seconds
BootOrder: 0001,0009,0008,0006,0007
Boot0001* proxmox       HD(2,GPT,c8f9ff07-2a87-473c-84c9-cb2566309690,0x800,0x200000)/File(\EFI\proxmox\shimx64.efi)
Boot0006* UEFI: IPV4 Intel(R) Ethernet Connection (H) I219-LM   PciRoot(0x0)/Pci(0x1f,0x6)/MAC(002324dfa600,0)/IPv4(0.0.0.00.0.0.0,0,0)0000424f
Boot0007* UEFI: IPV6 Intel(R) Ethernet Connection (H) I219-LM   PciRoot(0x0)/Pci(0x1f,0x6)/MAC(002324dfa600,0)/IPv6([::]:<->[::]:,0,0)0000424f
Boot0008* UEFI OS       HD(2,GPT,c8f9ff07-2a87-473c-84c9-cb2566309690,0x800,0x200000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
Boot0009* UEFI:  USB DISK 3.0 PMAP, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(17,0)/HD(2,GPT,a8a266fa-939e-4be0-9e57-288c1d8d73ef,0x274,0x4000)0000424f

disk status:

Code:
root@lenovo4:~# df -H
Filesystem            Size  Used Avail Use% Mounted on
udev                   17G     0   17G   0% /dev
tmpfs                 3.4G  1.2M  3.4G   1% /run
/dev/mapper/pve-root  106G   14G   87G  14% /
tmpfs                  17G   70M   17G   1% /dev/shm
efivarfs              132k  118k  8.5k  94% /sys/firmware/efi/efivars
tmpfs                 5.3M     0  5.3M   0% /run/lock
tmpfs                 1.1M     0  1.1M   0% /run/credentials/systemd-journald.service
/dev/nvme0n1p2        1.1G  8.5M  1.1G   1% /boot/efi
tmpfs                  17G     0   17G   0% /tmp
/dev/fuse             135M  148k  135M   1% /etc/pve
tmpfs                 1.1M     0  1.1M   0% /run/credentials/getty@tty1.service
tmpfs                 3.4G  8.2k  3.4G   1% /run/user/0
root@lenovo4:~# blkid
/dev/mapper/pve-root: UUID="6093b9e2-c0ef-4655-bb9c-505f3b075e3f" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/pve-vm--101--disk--0: UUID="756c062b-e639-441e-b4a2-efa20de94bcf" BLOCK_SIZE="4096" TYPE="ext4"
/dev/nvme0n1p3: UUID="4iTAH6-57Rh-2QFZ-R7Er-Eb4B-SUKr-edvZY2" TYPE="LVM2_member" PARTLABEL="Linux LVM" PARTUUID="a1201886-fdc6-4872-88cd-ef1d93741ebe"
/dev/nvme0n1p2: UUID="3BCC-DC7E" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="c8f9ff07-2a87-473c-84c9-cb2566309690"
/dev/mapper/pve-vm--140--disk--0: UUID="f5a8fd89-a225-4911-860f-1d3d9bfe385b" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/pve-vm--124--disk--0: UUID="071ff22c-2b87-42f7-a733-4c3350092976" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/pve-vm--146--disk--0: UUID="ef52a060-9697-40f7-9683-19d608c49165" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/pve-vm--116--disk--0: UUID="65c909ea-b91e-4c71-bb6f-adda96f79d00" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/pve-swap: UUID="9c7b2ad0-d190-4f87-9034-069543dc4f1b" TYPE="swap"
/dev/mapper/pve-vm--119--disk--0: UUID="08bc4570-4af2-448b-8641-6a33f98de871" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/pve-vm--100--disk--0: UUID="33a0c7f4-b1df-4507-b1ae-242ed8aa0901" BLOCK_SIZE="4096" TYPE="ext4"
/dev/sda2: SEC_TYPE="msdos" UUID="4DEC-4CE2" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI boot partition" PARTUUID="a8a266fa-939e-4be0-9e57-288c1d8d73ef"
/dev/sda3: BLOCK_SIZE="2048" LABEL="PVE" TYPE="hfsplus" PARTLABEL="HFSPLUS" PARTUUID="a8a266fa-939e-4be0-9e56-288c1d8d73ef"
/dev/mapper/pve-vm--109--disk--0: UUID="f1ebea82-ad55-490b-9d0f-9be4d8dabaed" BLOCK_SIZE="4096" TYPE="ext4"
/dev/nvme0n1p1: PARTUUID="caf4f888-c805-495c-9129-9e1f7bd64b30"
/dev/sda4: PARTLABEL="Gap1" PARTUUID="a8a266fa-939e-4be0-9e51-288c1d8d73ef"
/dev/sda1: PARTLABEL="Gap0" PARTUUID="a8a266fa-939e-4be0-9e54-288c1d8d73ef"

contents of /boot:


Code:
root@lenovo4:~# tree /boot
/boot
├── config-6.14.8-2-pve
├── config-6.5.13-6-pve
├── config-6.8.12-13-pve
├── config-6.8.12-9-pve
├── efi
│   ├── 2524cdc6a6f6404295a8fc5f1dede7d2
│   ├── EFI
│   │   ├── BOOT
│   │   │   ├── fbx64.efi
│   │   │   ├── grubx64.efi
│   │   │   └── mmx64.efi
│   │   ├── memtest86+
│   │   │   └── memtest86+x64.efi
│   │   └── proxmox
│   │       ├── BOOTX64.CSV
│   │       ├── fbx64.efi
│   │       ├── grub.cfg
│   │       ├── grubx64.efi
│   │       ├── mmx64.efi
│   │       └── shimx64.efi
│   ├── loader
│   │   └── entries
│   │       └── memtest.conf
│   └── System Volume Information
├── grub
│   ├── fonts
│   │   └── unicode.pf2
│   ├── grub.cfg
│   ├── grubenv
│   ├── i386-pc
│   │   ├── 915resolution.mod
--------TRUNCATED-------
│   │   └── zstd.mod
│   ├── locale
│   │   ├── ast.mo
--------TRUNCATED-------
│   │   └── zh_TW.mo
│   ├── unicode.pf2
│   └── x86_64-efi
│       ├── acpi.mod
--------TRUNCATED-------
│       └── zstd.mod
├── initrd.img-6.14.8-2-pve
├── initrd.img-6.5.13-6-pve
├── initrd.img-6.8.12-13-pve
├── initrd.img-6.8.12-9-pve
├── memtest86+ia32.bin
├── memtest86+ia32.efi
├── memtest86+x64.bin
├── memtest86+x64.efi
├── pve
│   ├── initrd.img -> /boot/pve/initrd.img-6.14
│   ├── initrd.img-6.14 -> /boot/initrd.img-6.14.8-2-pve
│   ├── initrd.img-6.5 -> /boot/initrd.img-6.5.13-6-pve
│   ├── initrd.img-6.8 -> /boot/initrd.img-6.8.12-13-pve
│   ├── vmlinuz -> /boot/pve/vmlinuz-6.14
│   ├── vmlinuz-6.14 -> /boot/vmlinuz-6.14.8-2-pve
│   ├── vmlinuz-6.5 -> /boot/vmlinuz-6.5.13-6-pve
│   └── vmlinuz-6.8 -> /boot/vmlinuz-6.8.12-13-pve
├── System.map-6.14.8-2-pve
├── System.map-6.5.13-6-pve
├── System.map-6.8.12-13-pve
├── System.map-6.8.12-9-pve
├── vmlinuz-6.14.8-2-pve
├── vmlinuz-6.5.13-6-pve
├── vmlinuz-6.8.12-13-pve
└── vmlinuz-6.8.12-9-pve

16 directories, 655 files



I was able to do this via rescue boot from the proxmox iso installer.


Any idea what I have to run so I can actually boot proxmox again?
Currently it just boots the installer usb automatically if I remove that usb pen it does pxe boot. The bios order is still like before (ssd over usb-drive then PXE boot).


Thanks for any help!
 
EDIT: I was on the right path, was just missing a reinstall of grub via this command:

Code:
apt install grub-efi-amd64

that solved it for me :)
 
  • Like
Reactions: leesteken
@leesteken thanks for the suggestion, most likely not, as I stubled upon this issue already and fixed it a while ago.
Mine was most likely a mess up from systemd-boot due to me reinstalling it.