Foxboron / sbctl

:computer: :lock: :key: Secure Boot key manager
MIT License
1.5k stars 87 forks source link

Running sbctl verify returns failed to find EFI system partition #368

Closed chompou closed 2 months ago

chompou commented 3 months ago

Hello, as the title says I'm having some issues with the verify command. I had no trouble generating or enrolling the keys, but here I am a bit lost with what to do, and why it can't find the EFI system partition. Any help is greatly appreciated (was trying to follow this https://www.reddit.com/r/archlinux/comments/10pq74e/my_easy_method_for_setting_up_secure_boot_with/) image

Foxboron commented 3 months ago

Output of lsblk --tree --json --output PARTTYPE,MOUNTPOINT,PTTYPE,FSTYPE,MOUNTPOINTS please

chompou commented 2 months ago

image image This is the whole output

Foxboron commented 2 months ago

This isn't useful. Please paste the actual text.

chompou commented 2 months ago
[root@Archus chompou]# lsblk --tree --json --output PARTTYPE,MOUNTPOINT,PTTYPE,FSTYPE,MOUNTPOINTS
{
   "blockdevices": [
      {
         "parttype": null,
         "mountpoint": null,
         "pttype": "gpt",
         "fstype": null,
         "mountpoints": [
             null
         ],
         "children": [
            {
               "parttype": "c12a7328-f81f-11d2-ba4b-00a0c93ec93b",
               "mountpoint": null,
               "pttype": "gpt",
               "fstype": "vfat",
               "mountpoints": [
                   null
               ]
            },{
               "parttype": "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7",
               "mountpoint": null,
               "pttype": "gpt",
               "fstype": "ntfs",
               "mountpoints": [
                   null
               ]
            },{
               "parttype": "de94bba4-06d1-4d40-a16a-bfd50179d6ac",
               "mountpoint": null,
               "pttype": "gpt",
               "fstype": "ntfs",
               "mountpoints": [
                   null
               ]
            },{
               "parttype": "de94bba4-06d1-4d40-a16a-bfd50179d6ac",
               "mountpoint": null,
               "pttype": "gpt",
               "fstype": "ntfs",
               "mountpoints": [
                   null
               ]
            }
         ]
      },{
         "parttype": null,
         "mountpoint": null,
         "pttype": "dos",
         "fstype": null,
         "mountpoints": [
             null
         ],
         "children": [
            {
               "parttype": "0x7",
               "mountpoint": null,
               "pttype": "dos",
               "fstype": "ntfs",
               "mountpoints": [
                   null
               ]
            }
         ]
      },{
         "parttype": null,
         "mountpoint": null,
         "pttype": "dos",
         "fstype": null,
         "mountpoints": [
             null
         ],
         "children": [
            {
               "parttype": "0x7",
               "mountpoint": null,
               "pttype": "dos",
               "fstype": "ntfs",
               "mountpoints": [
                   null
               ]
            },{
               "parttype": "0x83",
               "mountpoint": "/boot/efi",
               "pttype": "dos",
               "fstype": "vfat",
               "mountpoints": [
                   "/boot/efi"
               ]
            },{
               "parttype": "0x83",
               "mountpoint": "[SWAP]",
               "pttype": "dos",
               "fstype": "swap",
               "mountpoints": [
                   "[SWAP]"
               ]
            },{
               "parttype": "0x83",
               "mountpoint": "/",
               "pttype": "dos",
               "fstype": "ext4",
               "mountpoints": [
                   "/"
               ]
            }
         ]
      }
   ]
}
Foxboron commented 2 months ago

pttype is not gpt and parttype is just an invalid hex in this context. You either need to repartition it properly or something else.

chompou commented 2 months ago

Aha I see, gonna be exciting converting it without dataloss. Tyty for the help! Gonna close the issue since it's a me problem :)