mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 17:42:20 +00:00
docs(setup): pass the disk and partition number to efibootmgr
The unsigned setup guides passed the EFI System Partition device to efibootmgr -d, which expects the disk, and left out -p, which defaults to partition 1. The command failed, or created a boot entry for the wrong partition when the ESP isn't the first one. Pass the disk and the partition number, as the signed guides do.
This commit is contained in:
1 parent
4e08a078d9
commit
f293bc50a8
3 files changed
+12
-6
No files matched your search
@@ -102,10 +102,12 @@ You will need to install the `efibootmgr` package:
|
|||||||
$ apk add efibootmgr
|
$ apk add efibootmgr
|
||||||
```
|
```
|
||||||
|
|
||||||
Once `efibootmgr` is installed, find the partition device of your EFI System Partition and run the following:
|
Once `efibootmgr` is installed, find the disk and partition number of your EFI System Partition and run the following.
|
||||||
|
For example, if your EFI System Partition is `/dev/nvme0n1p1`, the disk is `/dev/nvme0n1` and the partition
|
||||||
|
number is `1`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ efibootmgr -d /dev/esp_partition_here -C -L 'Sprout' -l '\EFI\boot\sprout.efi'
|
$ efibootmgr -d /dev/BLOCK_DEVICE -p PARTITION_NUMBER -C -L 'Sprout' -l '\EFI\boot\sprout.efi'
|
||||||
```
|
```
|
||||||
|
|
||||||
This will add a new entry to your EFI boot menu called `Sprout` that will boot Sprout with your configuration.
|
This will add a new entry to your EFI boot menu called `Sprout` that will boot Sprout with your configuration.
|
||||||
|
|||||||
@@ -107,10 +107,12 @@ You may now reboot your system and select Sprout from the GRUB menu.
|
|||||||
|
|
||||||
You can configure your EFI boot menu to show Sprout as an option.
|
You can configure your EFI boot menu to show Sprout as an option.
|
||||||
|
|
||||||
To do so, please find the partition device of your EFI System Partition and run the following:
|
To do so, please find the disk and partition number of your EFI System Partition and run the following.
|
||||||
|
For example, if your EFI System Partition is `/dev/nvme0n1p1`, the disk is `/dev/nvme0n1` and the partition
|
||||||
|
number is `1`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo efibootmgr -d /dev/esp_partition_here -C -L 'Sprout' -l '\EFI\BOOT\sprout.efi'
|
$ sudo efibootmgr -d /dev/BLOCK_DEVICE -p PARTITION_NUMBER -C -L 'Sprout' -l '\EFI\BOOT\sprout.efi'
|
||||||
```
|
```
|
||||||
|
|
||||||
This will add a new entry to your EFI boot menu called `Sprout` that will boot Sprout with your configuration.
|
This will add a new entry to your EFI boot menu called `Sprout` that will boot Sprout with your configuration.
|
||||||
|
|||||||
@@ -52,10 +52,12 @@ They will be concatenated by a space and passed to the kernel.
|
|||||||
Since Sprout is still experimental, the following commands will add a boot entry to your EFI firmware for sprout but
|
Since Sprout is still experimental, the following commands will add a boot entry to your EFI firmware for sprout but
|
||||||
intentionally do not set it as the default boot entry.
|
intentionally do not set it as the default boot entry.
|
||||||
|
|
||||||
To add the entry, please find the partition device of your EFI System Partition and run the following:
|
To add the entry, please find the disk and partition number of your EFI System Partition and run the following.
|
||||||
|
For example, if your EFI System Partition is `/dev/nvme0n1p1`, the disk is `/dev/nvme0n1` and the partition
|
||||||
|
number is `1`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo efibootmgr -d /dev/esp_partition_here -C -L 'Sprout' -l '\EFI\BOOT\sprout.efi'
|
$ sudo efibootmgr -d /dev/BLOCK_DEVICE -p PARTITION_NUMBER -C -L 'Sprout' -l '\EFI\BOOT\sprout.efi'
|
||||||
```
|
```
|
||||||
|
|
||||||
This will add a new entry to your EFI boot menu called `Sprout` that will boot Sprout with your configuration.
|
This will add a new entry to your EFI boot menu called `Sprout` that will boot Sprout with your configuration.
|
||||||
|
|||||||
Reference in new issue
Block a user