[Bug 1993066] [NEW] 10_linux_zfs produces incorrect grub.cfg when a zfs backup of another encrypted Zsys install exists

Jonathan Zhang 1993066 at bugs.launchpad.net
Sun Oct 16 13:55:50 UTC 2022


Public bug reported:

10_linux_zfs produces incorrect grub.cfg when a zfs backup of another
encrypted Zsys install exists.

I backed up my other Ubuntu PC via zfs send/recv a snapshot of rpool,
which was stored on another zpool on my main PC. As a ZFS backup, it
contained the complete structure of a Zsys install.

Subsequently, update-grub produced a grub.cfg with no entries.

After destroying the backup, update-grub produced normal results with
kernels being properly detected.

Versions:

Up-to-date Ubuntu 22.04.1
grub-common:
  Installed: 2.06-2ubuntu7

Output when running update-grub with the backup residing on another zpool:
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Sourcing file `/etc/default/grub.d/kdump-tools.cfg'
Generating grub configuration file ...
zfs_mount_at() failed: encryption key not loadedMemtest86+ needs a 16-bit boot, that is not available on EFI, exiting
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_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  10_linux_zfs produces incorrect grub.cfg when a zfs backup of another
  encrypted Zsys install exists.
  
- I backed up my other Ubuntu PC via zfs send/recv, which is stored on
- another zpool. As a ZFS backup, it contains the complete structure of a
+ I backed up my other Ubuntu PC via zfs send/recv, which was stored on
+ another zpool. As a ZFS backup, it contained the complete structure of a
  Zsys install.
  
  Subsequently, update-grub produced a grub.cfg with no entries.
  
  After destroying the backup, update-grub produced normal results with
  kernels being properly detected.
  
  Versions:
  
  Up-to-date Ubuntu 22.04.1
  grub-common:
-   Installed: 2.06-2ubuntu7
+   Installed: 2.06-2ubuntu7
  
  Output when running update-grub with the backup residing on another zpool:
  /etc/kernel/postinst.d/zz-update-grub:
  Sourcing file `/etc/default/grub'
  Sourcing file `/etc/default/grub.d/init-select.cfg'
  Sourcing file `/etc/default/grub.d/kdump-tools.cfg'
  Generating grub configuration file ...
  zfs_mount_at() failed: encryption key not loadedMemtest86+ needs a 16-bit boot, that is not available on EFI, exiting
  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_OS_PROBER documentation entry.
  Adding boot menu entry for UEFI Firmware Settings ...
  done

** Description changed:

  10_linux_zfs produces incorrect grub.cfg when a zfs backup of another
  encrypted Zsys install exists.
  
- I backed up my other Ubuntu PC via zfs send/recv, which was stored on
- another zpool. As a ZFS backup, it contained the complete structure of a
- Zsys install.
+ I backed up my other Ubuntu PC via zfs send/recv a snapshot of rpool,
+ which was stored on another zpool on my main PC. As a ZFS backup, it
+ contained the complete structure of a Zsys install.
  
  Subsequently, update-grub produced a grub.cfg with no entries.
  
  After destroying the backup, update-grub produced normal results with
  kernels being properly detected.
  
  Versions:
  
  Up-to-date Ubuntu 22.04.1
  grub-common:
    Installed: 2.06-2ubuntu7
  
  Output when running update-grub with the backup residing on another zpool:
  /etc/kernel/postinst.d/zz-update-grub:
  Sourcing file `/etc/default/grub'
  Sourcing file `/etc/default/grub.d/init-select.cfg'
  Sourcing file `/etc/default/grub.d/kdump-tools.cfg'
  Generating grub configuration file ...
  zfs_mount_at() failed: encryption key not loadedMemtest86+ needs a 16-bit boot, that is not available on EFI, exiting
  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_OS_PROBER documentation entry.
  Adding boot menu entry for UEFI Firmware Settings ...
  done

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1993066

Title:
  10_linux_zfs produces incorrect grub.cfg when a zfs backup of another
  encrypted Zsys install exists

Status in grub2 package in Ubuntu:
  New

Bug description:
  10_linux_zfs produces incorrect grub.cfg when a zfs backup of another
  encrypted Zsys install exists.

  I backed up my other Ubuntu PC via zfs send/recv a snapshot of rpool,
  which was stored on another zpool on my main PC. As a ZFS backup, it
  contained the complete structure of a Zsys install.

  Subsequently, update-grub produced a grub.cfg with no entries.

  After destroying the backup, update-grub produced normal results with
  kernels being properly detected.

  Versions:

  Up-to-date Ubuntu 22.04.1
  grub-common:
    Installed: 2.06-2ubuntu7

  Output when running update-grub with the backup residing on another zpool:
  /etc/kernel/postinst.d/zz-update-grub:
  Sourcing file `/etc/default/grub'
  Sourcing file `/etc/default/grub.d/init-select.cfg'
  Sourcing file `/etc/default/grub.d/kdump-tools.cfg'
  Generating grub configuration file ...
  zfs_mount_at() failed: encryption key not loadedMemtest86+ needs a 16-bit boot, that is not available on EFI, exiting
  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_OS_PROBER documentation entry.
  Adding boot menu entry for UEFI Firmware Settings ...
  done

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1993066/+subscriptions




More information about the foundations-bugs mailing list