Skip to content

Commit 14b88b9

Browse files
committed
generate-zbm: enable components in config.yaml
Also force boolean output with --enable/--disable
1 parent 71cd075 commit 14b88b9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

bin/generate-zbm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,14 @@ EOF
133133
printf "Configuration %s does not exist or is unreadable\n", $runConf{config};
134134
exit 1;
135135
}
136+
136137
if ( $runConf{disable} ) {
137138
$runConf{enable} = false;
138139
}
139140

140141
if ( defined $runConf{enable} ) {
141142

142-
$config{Global}{ManageImages} = $runConf{enable};
143+
$config{Global}{ManageImages} = boolean( $runConf{enable} );
143144

144145
my $yaml = YAML::PP->new(
145146
boolean => 'boolean',

etc/zfsbootmenu/config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Global:
44
DracutConfDir: /etc/zfsbootmenu/dracut.conf.d
55
Components:
66
ImageDir: /boot/efi/EFI/void
7-
Versions: 2
8-
Enabled: false
7+
Versions: 3
8+
Enabled: true
99
syslinux:
1010
Config: /boot/syslinux/syslinux.cfg
1111
Enabled: false
1212
EFI:
1313
ImageDir: /boot/efi/EFI/void
14-
Versions: 2
14+
Versions: false
1515
Enabled: false
1616
Kernel:
1717
CommandLine: ro quiet loglevel=0

0 commit comments

Comments
 (0)