Skip to content

Commit f7a9d96

Browse files
committed
README.md: Minor changes to EFI integration steps
Closes #252
1 parent 2eadd35 commit f7a9d96

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,21 +93,21 @@ Because ZFS properties are inherited by default, it is possible to set the `org.
9393
As a special accommodation, the substitution keyword `%{parent}` in the KCL property will be recursively expanded to whatever the value of `org.zfsbootmenu:commandline` would be on the parent dataset. This allows, for example, mixing options common to multiple environments with those specific to each:
9494

9595
```sh
96-
zfs set org.zfsbootmenu:commandline="zfs.zfs_arc_max=8589934592 elevator=noop" zroot/ROOT
96+
zfs set org.zfsbootmenu:commandline=""zfs.zfs_arc_max=8589934592"" zroot/ROOT
9797
zfs set org.zfsbootmenu:commandline="%{parent} loglevel=4" zroot/ROOT/void.2019.11.01
9898
zfs set org.zfsbootmenu:commandline="loglevel=7 %{parent}" zroot/ROOT/void.2019.10.04
9999
```
100100

101101
will cause ZFSBootMenu to interpret the KCL for `zroot/ROOT/void.2019.11.01` as
102102

103103
```
104-
zfs.zfs_arc_max=8589934592 elevator=noop loglevel=4
104+
zfs.zfs_arc_max=8589934592 loglevel=4
105105
```
106106

107107
while the KCL for `zroot/ROOT/void.2019.10.04` would be
108108

109109
```
110-
loglevel=7 zfs.zfs_arc_max=8589934592 elevator=noop
110+
loglevel=7 zfs.zfs_arc_max=8589934592
111111
```
112112

113113

@@ -165,7 +165,7 @@ efibootmgr --disk /dev/sda \
165165
--create \
166166
--label "ZFSBootMenu" \
167167
--loader /vmlinuz-0.7.5 \
168-
--unicode 'root=zfsbootmenu:POOL=zroot ro initrd=\EFI\void\initramfs-0.7.5.img quiet spl_hostid=a8c0a2a8' \
168+
--unicode 'zbm.prefer=zroot ro initrd=\EFI\void\initramfs-0.7.5.img quiet ' \
169169
--verbose
170170
```
171171

@@ -178,11 +178,11 @@ Each time ZFSBootMenu is updated, a new EFI entry will need to be manually added
178178
`rEFInd` is considerably easier to install and manage. Refer to your distribution's packages for installation. Once rEFInd has been installed, you can create `refind_linux.conf` in the directory holding the ZFSBootMenu files (`/boot/efi/EFI/void` in our example):
179179

180180
```
181-
"Boot Default BE" "ro quiet loglevel=0 timeout=0 root=zfsbootmenu:POOL= spl_hostid="
182-
"Select BE" "ro quiet loglevel=0 timeout=-1 root=zfsbootmenu:POOL= spl_hostid="
181+
"Boot default" "zbm.prefer=zroot ro quiet loglevel=0 zbm.skip"
182+
"Boot to menu" "zbm.prefer=zroot ro quiet loglevel=0 zbm.show"
183183
```
184184

185-
As with the efibootmgr section, the `root=zfsbootmenu:POOL=` and `spl_hostid=` options need to be configured to match your environment.
185+
As with the efibootmgr section, the `zbm.prefer=` option needs to be configured to match your environment.
186186

187187
This file will configure `rEFInd` to create two entries for each kernel and initramfs pair it finds. The first will directly boot into the environment set via the `bootfs` pool property. The second will force ZFSBootMenu to display an environment / kernel / snapshot selection menu, allowing you to boot alternate environments, kernels and snapshots.
188188

0 commit comments

Comments
 (0)