/etc/grub/10_linux_zfs has bad zpool command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-fuse (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 23.04
Release: 23.04
$ apt-cache policy grub-common
grub-common:
Installed: 2.06-2ubuntu16
Candidate: 2.06-2ubuntu16
Version table:
*** 2.06-2ubuntu16 500
500 http://
100 /var/lib/
The zpool command does not have a -H flag (at least in Ubuntu 23.04).
This results in an error from the /etc/grub.
The fix is to remove the -H flag and adjust the awk script to ignore the headline line (see diff).
$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
bad property list: invalid property '-H'
usage:
get <"all" | property[,...]> <pool> ...
the following properties are supported:
PROPERTY EDIT VALUES
allocated NO <size>
capacity NO <size>
dedupratio NO <1.00x or higher if deduped>
free NO <size>
guid NO <guid>
health NO <state>
size NO <size>
altroot YES <path>
ashift YES <ashift, 9-13, or 0=default>
autoexpand YES on | off
autoreplace YES on | off
bootfs YES <filesystem>
cachefile YES <file> | none
dedupditto YES <threshold (min 100)>
delegation YES on | off
failmode YES wait | continue | panic
listsnapshots YES on | off
version YES <version>
Found memtest86+ 64bit EFI image: /memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_
Adding boot menu entry for UEFI Firmware Settings ...
done
Diffing the original against a patched (working) version:
$ diff 10_linux_zfs /etc/grub.
102c102,103
< local rel_pool_
---
> # local rel_pool_
> local rel_pool_
Removing wrongly subscribed ubuntu-sponsors as there is no debdiff to sponsor here, not that we'd be interested in debdiffs for grub. Right now, I'm not interested in taking any patches as I'm busy preparing the 2.12~rc1 rebase which creates a lot of complexities.