ubuntu 19.10 zfs on root, grub2 failure

Bug #1855605 reported by Dong Liu
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

While doing apt upgrade,

/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.3.0-24-generic
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=1c7a09f2-895b-4f6d-970e-2ef13f19ea00)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-probe: error: failed to get canonical path of `rpool/ROOT/ubuntu_w174bf'.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1........]
dpkg: error processing package linux-image-5.3.0-24-generic (--configure):
 installed linux-image-5.3.0-24-generic package post-installation script subprocess returned e
rror exit status 1
Errors were encountered while processing:
 linux-image-5.3.0-24-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: grub2 (not installed)
ProcVersionSignature: Ubuntu 5.3.0-23.25-generic 5.3.7
Uname: Linux 5.3.0-23-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Dec 8 11:51:44 2019
InstallationDate: Installed on 2019-11-03 (35 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dong Liu (dliu-cn-nj) wrote :
Revision history for this message
Michael Hooker (dain-bramage) wrote :
Download full text (9.2 KiB)

I had similar problem when upgrading to Ubuntu 19.10 from 19.04 root on zfs.

sudo dpkg --configure -a
Setting up initramfs-tools (0.133ubuntu10) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.3.0-24-generic (5.3.0-24.26) ...
Setting up friendly-recovery (0.2.41) ...
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: vmlinuz-5.0.0-25-generic in rpool/ROOT/ubuntu
Found initrd image: initrd.img-5.0.0-25-generic in rpool/ROOT/ubuntu
Found linux image: vmlinuz-5.0.0-36-generic in rpool/ROOT/ubuntu
Found initrd image: initrd.img-5.0.0-36-generic in rpool/ROOT/ubuntu
Found linux image: vmlinuz-5.0.0-37-generic in rpool/ROOT/ubuntu
Found initrd image: initrd.img-5.0.0-37-generic in rpool/ROOT/ubuntu
Found linux image: vmlinuz-5.3.0-24-generic in rpool/ROOT/ubuntu
Found initrd image: initrd.img-5.3.0-24-generic in rpool/ROOT/ubuntu
Warning: Failed to find a valid directory 'etc' for dataset 'rpool/ROOT/ubuntu@install'. Ignoring
Warning: Ignoring rpool/ROOT/ubuntu@install
Warning: Failed to find a valid directory 'etc' for dataset 'rpool/ROOT/ubuntu@1904'. Ignoring
Warning: Ignoring rpool/ROOT/ubuntu@1904
Warning: Failed to find a valid directory 'etc' for dataset '<email address hidden>'. Ignoring
Warning: Ignoring <email address hidden>
Warning: Failed to find a valid directory 'etc' for dataset 'rpool/ROOT/ubuntu@21Aug19'. Ignoring
Warning: Ignoring rpool/ROOT/ubuntu@21Aug19
Warning: Failed to find a valid directory 'etc' for dataset 'rpool/ROOT/ubuntu@mysql'. Ignoring
Warning: Ignoring rpool/ROOT/ubuntu@mysql
Warning: Failed to find a valid directory 'etc' for dataset '<email address hidden>'. Ignoring
Warning: Ignoring <email address hidden>
Warning: Failed to find a valid directory 'etc' for dataset '<email address hidden>'. Ignoring
Warning: Ignoring <email address hidden>
Warning: Failed to find a valid directory 'etc' for dataset 'rpool/ROOT/ubuntu@beforeupgrade'. Ignoring
Warning: Ignoring rpool/ROOT/ubuntu@beforeupgrade
device-mapper: reload ioctl on osprober-linux-nvme0n1p3 failed: Device or resource busy
Command failed.
device-mapper: reload ioctl on osprober-linux-nvme1n1p3 failed: Device or resource busy
Command failed.
Adding boot menu entry for EFI firmware configuration
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 162
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
dpkg: error processing package friendly-recovery (--configure):
 installed friendly-recovery package post-installation script subprocess returned error exit status 1
Setting up grub-efi-amd64 (2.04-1ubuntu12.1) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: vmlinuz-5.0.0-25-generic in rpool/ROOT/ubuntu
Found initrd image: initrd.img-...

Read more...

tags: added: zfs
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

for reference, this might be a duplicate of 1848856 as the error message is one of the fix we made.

Revision history for this message
Clemens Lang (neverpanic) wrote :

Should have searched before, I think you're hitting 1867910. The problem is explained and a workaround is available over there.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.