Skip to content

Commit 8a5d71e

Browse files
committed
Bump to version 1.11.0
1 parent 9f360ac commit 8a5d71e

File tree

7 files changed

+146
-41
lines changed

7 files changed

+146
-41
lines changed

90zfsbootmenu/help-files/134/snapshot-management.pod

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,16 @@
3333

3434
The operation will fail gracefully if the pool can not be set read/write.
3535

36+
[MOD+N] snapshot creation
37+
This creates a new snapshot of the currently selected boot environment. A new snapshot is useful if you need to repair a boot
38+
environment from a chroot, to allow for easy roll-back of the changes.
39+
40+
The operation will fail gracefully if the pool can not be set read/write.
41+
3642
[MOD+D] diff
37-
Compare the differences between the selected snapshot and the current state of the boot environment.
43+
Compare the differences between snapshots and filesystems. A single snapshot can be selected and a diff will be generated between
44+
that and the current state of the filesystem. Two snapshots can be selected (and deselected) with the tab key and a diff will be
45+
generated between them.
3846

3947
The operation will fail gracefully if the pool can not be set read/write.
4048

90zfsbootmenu/help-files/134/zfsbootmenu.7.pod

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ general systems to boot without setting any values.
5757
Note: Setting spl.spl_hostid to a non-zero value on the kernel commandline will make the ZFS kernel modules ignore any value set
5858
in /etc/hostid. To restore standard ZFS behavior on a running system, execute
5959

60-
echo 0 > /sys/module/spl/paramters/spl_hostid
60+
echo 0 > /sys/module/spl/paramters/spl_hostid
6161

6262
zbm.sort_key
6363
This option accepts a ZFS property name by which the boot environment and snapshot lists will be sorted.
@@ -108,9 +108,18 @@ The following properties can be set at any level of the boot-environment hierarc
108108
If the identifier does not match any kernels, the latest kernel will be chosen as a fallback.
109109

110110
org.zfsbootmenu:commandline
111-
A list of command-line arguments passed to the kernel selected by ZFSBootMenu for final boot.
111+
A list of command-line arguments passed to the kernel selected by ZFSBootMenu for final boot. The special keyword %{parent} will
112+
be recursively expanded to the value of org.zfsbootmenu:commandline at the parent of the boot environment. Thus, for example,
112113

113-
Do not set root=; ZFSBootMenu will set this option for for you.
114+
zfs set org.zfsbootmenu:commandline="zfs.zfs_arc_max=8589934592" zroot
115+
zfs set org.zfsbootmenu:commandline="%{parent} elevator=noop" zroot/ROOT
116+
zfs set org.zfsbootmenu:commandline="loglevel=7 %{parent}" zroot/ROOT/be
117+
118+
will cause ZFSBootMenu to interpret the kernel command-line for zroot/ROOT/be as
119+
120+
loglevel=7 zfs.zfs_arc_max=8589934592 elevator=noop
121+
122+
Never set the root= argument; ZFSBootMenu always sets this option based on the selected boot environment.
114123

115124
org.zfsbootmenu:active
116125
This controls whether boot environments appear in or are hidden from ZFSBootMenu.
@@ -142,17 +151,27 @@ The following properties can be set at any level of the boot-environment hierarc
142151
boot environment. These passphrases entered are not cached by default.
143152

144153
When org.zfsbootmenu:keysource is a mountable ZFS filesystem, before prompting for a passphrase when keylocation is not set to
145-
prompt, ZFSBootMenu will attempt to mount <filesystem> (unlocking that, if necessary) and search for the key file at keylocation
146-
relative to <filesystem>. If such a file is found, it will be copied to the initramfs, and the copy in the initramfs will be used
147-
to decrypt the original boot environment. Any copied keys are retained until ZFSBootMenu boots an environment, so a single
148-
password prompt can be sufficient to unlock several pools with the same keysource or prevent prompts from reappearing when the
149-
pool must be exported and reimported (for example, to alter boot parameters from within ZFSBootMenu).
154+
prompt, ZFSBootMenu will attempt to mount <filesystem> (unlocking that, if necessary) and search for the key file within
155+
<filesystem>. When <filesystem> specifies a mountpoint property that is not none or legacy, the specified mount point will be
156+
stripped (if possible) from the beginning of any keylocation property to attempt to identify a key at the point where it would
157+
normally be mounted. If no file exists at the stripped path (or the mountpoint specifies none or legacy), keys will be sought at
158+
the full path of keylocation relative to <filesystem>. If a key is found at either location, it will be copied to the initramfs.
159+
The copy in the initramfs will be used to decrypt the original boot environment. Copied keys are retained until ZFSBootMenu boots
160+
an environment, so a single password prompt can be sufficient to unlock several pools with the same keysource or prevent prompts
161+
from reappearing when the pool must be exported and reimported (for example, to alter boot parameters from within ZFSBootMenu).
150162

151163
Dracut Options
152164

153165
In addition to standard dracut configuration options, the ZFSBootMenu dracut module supports addtional options to customize boot
154166
behavior.
155167

168+
zfsbootmenu_early_setup=<executable-list>
169+
An optional variable specifying a space-separated list of paths to setup hooks that will be installed in the ZFSBootMenu
170+
initramfs. Any path in the list <executable-list> that exists and is executable will be installed.
171+
172+
Any installed early hooks are run after SPL and ZFS kernel modules are loaded and a hostid is configured in /etc/hostid, but
173+
before any zpools have been imported.
174+
156175
zfsbootmenu_setup=<executable-list>
157176
An optional variable specifying a space-separated list of paths to setup hooks that will be installed in the ZFSBootMenu
158177
initramfs. Any path in the list <executable-list> that exists and is executable will be installed.

90zfsbootmenu/help-files/54/snapshot-management.pod

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,22 @@
4848
The operation will fail gracefully if the pool can
4949
not be set read/write.
5050

51+
[MOD+N] snapshot creation
52+
This creates a new snapshot of the currently
53+
selected boot environment. A new snapshot is useful
54+
if you need to repair a boot environment from a
55+
chroot, to allow for easy roll-back of the changes.
56+
57+
The operation will fail gracefully if the pool can
58+
not be set read/write.
59+
5160
[MOD+D] diff
52-
Compare the differences between the selected
53-
snapshot and the current state of the boot
54-
environment.
61+
Compare the differences between snapshots and
62+
filesystems. A single snapshot can be selected and a
63+
diff will be generated between that and the current
64+
state of the filesystem. Two snapshots can be
65+
selected (and deselected) with the tab key and a
66+
diff will be generated between them.
5567

5668
The operation will fail gracefully if the pool can
5769
not be set read/write.

90zfsbootmenu/help-files/54/zfsbootmenu.7.pod

Lines changed: 50 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ setting any values.
104104
restore standard ZFS behavior on a running system,
105105
execute
106106

107-
echo 0 > /sys/module/spl/paramters/spl_hostid
107+
echo 0 > /sys/module/spl/paramters/spl_hostid
108108

109109
zbm.sort_key
110110
This option accepts a ZFS property name by which
@@ -172,10 +172,24 @@ behavior.
172172

173173
org.zfsbootmenu:commandline
174174
A list of command-line arguments passed to the
175-
kernel selected by ZFSBootMenu for final boot.
175+
kernel selected by ZFSBootMenu for final boot. The
176+
special keyword %{parent} will be recursively
177+
expanded to the value of
178+
org.zfsbootmenu:commandline at the parent of the
179+
boot environment. Thus, for example,
176180

177-
Do not set root=; ZFSBootMenu will set this option
178-
for for you.
181+
zfs set org.zfsbootmenu:commandline="zfs.zfs_arc_max=8589934592" zroot
182+
zfs set org.zfsbootmenu:commandline="%{parent} elevator=noop" zroot/ROOT
183+
zfs set org.zfsbootmenu:commandline="loglevel=7 %{parent}" zroot/ROOT/be
184+
185+
will cause ZFSBootMenu to interpret the kernel
186+
command-line for zroot/ROOT/be as
187+
188+
loglevel=7 zfs.zfs_arc_max=8589934592 elevator=noop
189+
190+
Never set the root= argument; ZFSBootMenu always
191+
sets this option based on the selected boot
192+
environment.
179193

180194
org.zfsbootmenu:active
181195
This controls whether boot environments appear in
@@ -233,25 +247,45 @@ behavior.
233247
filesystem, before prompting for a passphrase when
234248
keylocation is not set to prompt, ZFSBootMenu will
235249
attempt to mount <filesystem> (unlocking that, if
236-
necessary) and search for the key file at
237-
keylocation relative to <filesystem>. If such a
238-
file is found, it will be copied to the initramfs,
239-
and the copy in the initramfs will be used to
240-
decrypt the original boot environment. Any copied
241-
keys are retained until ZFSBootMenu boots an
242-
environment, so a single password prompt can be
243-
sufficient to unlock several pools with the same
244-
keysource or prevent prompts from reappearing when
245-
the pool must be exported and reimported (for
246-
example, to alter boot parameters from within
247-
ZFSBootMenu).
250+
necessary) and search for the key file within
251+
<filesystem>. When <filesystem> specifies a
252+
mountpoint property that is not none or legacy,
253+
the specified mount point will be stripped (if
254+
possible) from the beginning of any keylocation
255+
property to attempt to identify a key at the point
256+
where it would normally be mounted. If no file
257+
exists at the stripped path (or the mountpoint
258+
specifies none or legacy), keys will be sought at
259+
the full path of keylocation relative to
260+
<filesystem>. If a key is found at either
261+
location, it will be copied to the initramfs. The
262+
copy in the initramfs will be used to decrypt the
263+
original boot environment. Copied keys are
264+
retained until ZFSBootMenu boots an environment,
265+
so a single password prompt can be sufficient to
266+
unlock several pools with the same keysource or
267+
prevent prompts from reappearing when the pool
268+
must be exported and reimported (for example, to
269+
alter boot parameters from within ZFSBootMenu).
248270

249271
Dracut Options
250272

251273
In addition to standard dracut configuration options,
252274
the ZFSBootMenu dracut module supports addtional
253275
options to customize boot behavior.
254276

277+
zfsbootmenu_early_setup=<executable-list>
278+
An optional variable specifying a space-separated
279+
list of paths to setup hooks that will be
280+
installed in the ZFSBootMenu initramfs. Any path
281+
in the list <executable-list> that exists and is
282+
executable will be installed.
283+
284+
Any installed early hooks are run after SPL and
285+
ZFS kernel modules are loaded and a hostid is
286+
configured in /etc/hostid, but before any zpools
287+
have been imported.
288+
255289
zfsbootmenu_setup=<executable-list>
256290
An optional variable specifying a space-separated
257291
list of paths to setup hooks that will be

90zfsbootmenu/help-files/94/snapshot-management.pod

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,18 @@
3737

3838
The operation will fail gracefully if the pool can not be set read/write.
3939

40+
[MOD+N] snapshot creation
41+
This creates a new snapshot of the currently selected boot environment. A new snapshot is
42+
useful if you need to repair a boot environment from a chroot, to allow for easy roll-back
43+
of the changes.
44+
45+
The operation will fail gracefully if the pool can not be set read/write.
46+
4047
[MOD+D] diff
41-
Compare the differences between the selected snapshot and the current state of the boot
42-
environment.
48+
Compare the differences between snapshots and filesystems. A single snapshot can be selected
49+
and a diff will be generated between that and the current state of the filesystem. Two
50+
snapshots can be selected (and deselected) with the tab key and a diff will be generated
51+
between them.
4352

4453
The operation will fail gracefully if the pool can not be set read/write.
4554

90zfsbootmenu/help-files/94/zfsbootmenu.7.pod

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Default options were chosen to allow general systems to boot without setting any
7171
ZFS kernel modules ignore any value set in /etc/hostid. To restore standard ZFS behavior
7272
on a running system, execute
7373

74-
echo 0 > /sys/module/spl/paramters/spl_hostid
74+
echo 0 > /sys/module/spl/paramters/spl_hostid
7575

7676
zbm.sort_key
7777
This option accepts a ZFS property name by which the boot environment and snapshot lists
@@ -130,9 +130,19 @@ boot behavior.
130130

131131
org.zfsbootmenu:commandline
132132
A list of command-line arguments passed to the kernel selected by ZFSBootMenu for final
133-
boot.
133+
boot. The special keyword %{parent} will be recursively expanded to the value of
134+
org.zfsbootmenu:commandline at the parent of the boot environment. Thus, for example,
134135

135-
Do not set root=; ZFSBootMenu will set this option for for you.
136+
zfs set org.zfsbootmenu:commandline="zfs.zfs_arc_max=8589934592" zroot
137+
zfs set org.zfsbootmenu:commandline="%{parent} elevator=noop" zroot/ROOT
138+
zfs set org.zfsbootmenu:commandline="loglevel=7 %{parent}" zroot/ROOT/be
139+
140+
will cause ZFSBootMenu to interpret the kernel command-line for zroot/ROOT/be as
141+
142+
loglevel=7 zfs.zfs_arc_max=8589934592 elevator=noop
143+
144+
Never set the root= argument; ZFSBootMenu always sets this option based on the selected
145+
boot environment.
136146

137147
org.zfsbootmenu:active
138148
This controls whether boot environments appear in or are hidden from ZFSBootMenu.
@@ -173,19 +183,32 @@ boot behavior.
173183

174184
When org.zfsbootmenu:keysource is a mountable ZFS filesystem, before prompting for a
175185
passphrase when keylocation is not set to prompt, ZFSBootMenu will attempt to mount
176-
<filesystem> (unlocking that, if necessary) and search for the key file at keylocation
177-
relative to <filesystem>. If such a file is found, it will be copied to the initramfs, and
178-
the copy in the initramfs will be used to decrypt the original boot environment. Any
179-
copied keys are retained until ZFSBootMenu boots an environment, so a single password
180-
prompt can be sufficient to unlock several pools with the same keysource or prevent
181-
prompts from reappearing when the pool must be exported and reimported (for example, to
182-
alter boot parameters from within ZFSBootMenu).
186+
<filesystem> (unlocking that, if necessary) and search for the key file within
187+
<filesystem>. When <filesystem> specifies a mountpoint property that is not none or
188+
legacy, the specified mount point will be stripped (if possible) from the beginning of any
189+
keylocation property to attempt to identify a key at the point where it would normally be
190+
mounted. If no file exists at the stripped path (or the mountpoint specifies none or
191+
legacy), keys will be sought at the full path of keylocation relative to <filesystem>. If
192+
a key is found at either location, it will be copied to the initramfs. The copy in the
193+
initramfs will be used to decrypt the original boot environment. Copied keys are retained
194+
until ZFSBootMenu boots an environment, so a single password prompt can be sufficient to
195+
unlock several pools with the same keysource or prevent prompts from reappearing when the
196+
pool must be exported and reimported (for example, to alter boot parameters from within
197+
ZFSBootMenu).
183198

184199
Dracut Options
185200

186201
In addition to standard dracut configuration options, the ZFSBootMenu dracut module supports
187202
addtional options to customize boot behavior.
188203

204+
zfsbootmenu_early_setup=<executable-list>
205+
An optional variable specifying a space-separated list of paths to setup hooks that will
206+
be installed in the ZFSBootMenu initramfs. Any path in the list <executable-list> that
207+
exists and is executable will be installed.
208+
209+
Any installed early hooks are run after SPL and ZFS kernel modules are loaded and a hostid
210+
is configured in /etc/hostid, but before any zpools have been imported.
211+
189212
zfsbootmenu_setup=<executable-list>
190213
An optional variable specifying a space-separated list of paths to setup hooks that will
191214
be installed in the ZFSBootMenu initramfs. Any path in the list <executable-list> that

bin/generate-zbm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use strict;
55
use warnings;
66

7-
our $VERSION = '1.10.1';
7+
our $VERSION = '1.11.0';
88

99
use Getopt::Long qw(:config no_ignore_case auto_version);
1010
use Pod::Usage qw(pod2usage);

0 commit comments

Comments
 (0)