ubuntu 19.10 zfs on root, grub2 failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
While doing apt upgrade,
/etc/kernel/
update-initramfs: Generating /boot/initrd.
I: The initramfs will attempt to resume from /dev/sda3
I: (UUID=1c7a09f2-
I: Set the RESUME variable to override this.
/etc/kernel/
/usr/sbin/
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
installed linux-image-
rror exit status 1
Errors were encountered while processing:
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: grub2 (not installed)
ProcVersionSign
Uname: Linux 5.3.0-23-generic x86_64
NonfreeKernelMo
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_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)
I had similar problem when upgrading to Ubuntu 19.10 from 19.04 root on zfs.
sudo dpkg --configure -a 5.3.0-24- generic (5.3.0-24.26) ... grub.d/ init-select. cfg' 5.0.0-25- generic in rpool/ROOT/ubuntu img-5.0. 0-25-generic in rpool/ROOT/ubuntu 5.0.0-36- generic in rpool/ROOT/ubuntu img-5.0. 0-36-generic in rpool/ROOT/ubuntu 5.0.0-37- generic in rpool/ROOT/ubuntu img-5.0. 0-37-generic in rpool/ROOT/ubuntu 5.3.0-24- generic in rpool/ROOT/ubuntu img-5.3. 0-24-generic in rpool/ROOT/ubuntu ROOT/ubuntu@ install' . Ignoring ubuntu@ install ROOT/ubuntu@ 1904'. Ignoring ubuntu@ 1904 ROOT/ubuntu@ 21Aug19' . Ignoring ubuntu@ 21Aug19 ROOT/ubuntu@ mysql'. Ignoring ubuntu@ mysql ROOT/ubuntu@ beforeupgrade' . Ignoring ubuntu@ beforeupgrade linux-nvme0n1p3 failed: Device or resource busy linux-nvme1n1p3 failed: Device or resource busy grub.cfg. new file attached. grub.d/ init-select. cfg' 5.0.0-25- generic in rpool/ROOT/ubuntu
Setting up initramfs-tools (0.133ubuntu10) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-
Setting up friendly-recovery (0.2.41) ...
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: vmlinuz-
Found initrd image: initrd.
Found linux image: vmlinuz-
Found initrd image: initrd.
Found linux image: vmlinuz-
Found initrd image: initrd.
Found linux image: vmlinuz-
Found initrd image: initrd.
Warning: Failed to find a valid directory 'etc' for dataset 'rpool/
Warning: Ignoring rpool/ROOT/
Warning: Failed to find a valid directory 'etc' for dataset 'rpool/
Warning: Ignoring rpool/ROOT/
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/
Warning: Ignoring rpool/ROOT/
Warning: Failed to find a valid directory 'etc' for dataset 'rpool/
Warning: Ignoring rpool/ROOT/
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/
Warning: Ignoring rpool/ROOT/
device-mapper: reload ioctl on osprober-
Command failed.
device-mapper: reload ioctl on osprober-
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/
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/
Generating grub configuration file ...
Found linux image: vmlinuz-
Found initrd image: initrd.img-...