[Bug 1969845] [NEW] grub-efi-amd64-signed does not respect grub2/update_nvram

2022-04-21 Thread Louis Sautier
Public bug reported:

Hi,
Unlike grub-efi-amd64, grub-efi-amd64-signed doesn't respect the value of 
"grub2/update_nvram":
# debconf-show grub-efi-amd64 | grep grub2/update_nvram:
* grub2/update_nvram: false
# efibootmgr
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0003,0004,0007
Boot0002* UEFI: PXE IP4 P0 Intel(R) Ethernet Controller X550
Boot0003* UEFI: PXE IP4 P1 Intel(R) Ethernet Controller X550
Boot0004* UEFI: Built-in EFI Shell
Boot0007* UEFI: PXE IP4 P0 American Megatrends Inc.
# dpkg-reconfigure grub-efi-amd64-signed
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
Installation finished. No error reported.
Installing grub to /var/lib/grub/esp.
Installing for x86_64-efi platform.
Installation finished. No error reported.
# 
# debconf-show grub-efi-amd64 | grep grub2/update_nvram:
* grub2/update_nvram: false
# efibootmgr
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0003,0004,0007
Boot0002* UEFI: PXE IP4 P0 Intel(R) Ethernet Controller X550
Boot0003* UEFI: PXE IP4 P1 Intel(R) Ethernet Controller X550
Boot0004* UEFI: Built-in EFI Shell
Boot0007* UEFI: PXE IP4 P0 American Megatrends Inc.
# dpkg-reconfigure grub-efi-amd64-signed
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
Installation finished. No error reported.
Installing grub to /var/lib/grub/esp.
Installing for x86_64-efi platform.
Installation finished. No error reported.
# efibootmgr 
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: ,0001,0002,0003,0004,0007
Boot* ubuntu
Boot0001* ubuntu
Boot0002* UEFI: PXE IP4 P0 Intel(R) Ethernet Controller X550
Boot0003* UEFI: PXE IP4 P1 Intel(R) Ethernet Controller X550
Boot0004* UEFI: Built-in EFI Shell
Boot0007* UEFI: PXE IP4 P0 American Megatrends Inc.

This is especially problematic as grub-efi-amd64-signed is a dependency
of shim-signed, an essential package, making its removal slightly
problematic.

From what I see, the postinst script is too simple:
https://git.launchpad.net/~git-ubuntu-
import/ubuntu/+source/grub2-signed/tree/debian/grub-efi-
amd64-signed.postinst?h=import/1.180#n14

It should probably do something similar to grub-efi-amd64's postinst,
i.e. run_grub_multi_install --target="$target" "$NO_EXTRA_REMOVABLE"
"$NO_NVRAM"

I also noticed that Debian doesn't have a postinst script for grub-efi-
amd64-signed so I don't have a problem there.

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

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

Title:
  grub-efi-amd64-signed does not respect grub2/update_nvram

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1969841] Re: grub-efi-amd64: grub-efi/install_devices depends on the value of LC_COLLATE/LANG

2022-04-21 Thread Louis Sautier
** Description changed:

  Hi,
  As discussed with Julian Andres Klode on IRC, there are cases where the value 
of grub-efi/install_devices is affected by the value of LC_COLLATE.
  
  This is caused by this unique sort: https://git.launchpad.net/~ubuntu-
  core-dev/grub/+git/ubuntu/tree/debian/grub-multi-
  install?h=debian/2.06-2ubuntu7#n220
  
  # lsb_release -rd
  Description:  Ubuntu 22.04 LTS
  Release:  22.04
  
  From what I see, this can only happen on systems with NVMe drives:
  
  # find -L /dev/disk/by-id/ -samefile /dev/nvme0n1p1
  /dev/disk/by-id/nvme-eui.e8238fa6bf530001001b444-part1
  /dev/disk/by-id/nvme-WDC_CL_SN720_SDAQNTW-512G-2000_-part1
  
  Let's assume grub-efi/install_devices has the following value:
  
  # debconf-show grub-efi-amd64 | grep grub-efi/install_devices:
  * grub-efi/install_devices: 
/dev/disk/by-id/nvme-WDC_CL_SN720_SDAQNTW-512G-2000_-part1, 
/dev/disk/by-id/nvme-WDC_CL_SN720_SDAQNTW-512G-2000_-part1
  
  This was obtained with this LANG/LC_COLLATE:
  # echo $LANG
  C.UTF-8
  # dpkg-reconfigure grub-efi-amd64
- │ GRUB EFI system partitions: 
   │ 
- │ 
   │ 
- │[*] /dev/nvme1n1p1 (535 MB; /boot/efi) on 512110 MB WDC CL SN720 
SDAQNTW-512G-2000  │ 
- │[*] /dev/nvme0n1p1 (535 MB; ) on 512110 MB WDC CL SN720 
SDAQNTW-512G-2000   │ 
+ │ GRUB EFI system partitions: 
   │
+ │ 
   │
+ │[*] /dev/nvme1n1p1 (535 MB; /boot/efi) on 512110 MB WDC CL SN720 
SDAQNTW-512G-2000  │
+ │[*] /dev/nvme0n1p1 (535 MB; ) on 512110 MB WDC CL SN720 
SDAQNTW-512G-2000   │
  # debconf-show grub-efi-amd64 | grep grub-efi/install_devices:
  * grub-efi/install_devices: 
/dev/disk/by-id/nvme-WDC_CL_SN720_SDAQNTW-512G-2000_-part1, 
/dev/disk/by-id/nvme-WDC_CL_SN720_SDAQNTW-512G-2000_-part1
  
  We can see that the boxes are properly ticked here.
  
  However:
  # export LANG=en_US.UTF-8; dpkg-reconfigure grub-efi-amd64
- │ GRUB EFI system partitions: 
│ 
- │ 
│
- │[ ] /dev/nvme1n1p1 (535 MB; /boot/efi) on 512110 MB WDC CL SN720 
SDAQNTW-512G-2000   │ 
+ │ GRUB EFI system partitions: 
│
+ │ 
│
+ │[ ] /dev/nvme1n1p1 (535 MB; /boot/efi) on 512110 MB WDC CL SN720 
SDAQNTW-512G-2000   │
  │[ ] /dev/nvme0n1p1 (535 MB; ) on 512110 MB WDC CL SN720 
SDAQNTW-512G-2000│
  
  The boxes are not ticked, if I tick them, I get the following:
  
  # debconf-show grub-efi-amd64 | grep grub-efi/install_devices:
- * grub-efi/install_devices: 
/dev/disk/by-id/nvme-eui.e8238fa6bf530001001b444-part1, 
/dev/disk/by-id/nvme-eui.e8238fa6bf530001001b4466-part1 
  
+ * grub-efi/install_devices: 
/dev/disk/by-id/nvme-eui.e8238fa6bf530001001b444-part1, 
/dev/disk/by-id/nvme-eui.e8238fa6bf530001001b4466-part1
  
- 
- I assume the postinst script for grub-pc exhibits the same bug.
+ I assume the postinst script for grub-pc exhibits the same bug with the
+ value of grub-pc/install_devices.

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

Title:
  grub-efi-amd64: grub-efi/install_devices depends on the value of
  LC_COLLATE/LANG

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1969841] [NEW] grub-efi-amd64: grub-efi/install_devices depends on the value of LC_COLLATE/LANG

2022-04-21 Thread Louis Sautier
Public bug reported:

Hi,
As discussed with Julian Andres Klode on IRC, there are cases where the value 
of grub-efi/install_devices is affected by the value of LC_COLLATE.

This is caused by this unique sort: https://git.launchpad.net/~ubuntu-
core-dev/grub/+git/ubuntu/tree/debian/grub-multi-
install?h=debian/2.06-2ubuntu7#n220

# lsb_release -rd
Description:Ubuntu 22.04 LTS
Release:22.04

From what I see, this can only happen on systems with NVMe drives:

# find -L /dev/disk/by-id/ -samefile /dev/nvme0n1p1
/dev/disk/by-id/nvme-eui.e8238fa6bf530001001b444-part1
/dev/disk/by-id/nvme-WDC_CL_SN720_SDAQNTW-512G-2000_-part1

Let's assume grub-efi/install_devices has the following value:

# debconf-show grub-efi-amd64 | grep grub-efi/install_devices:
* grub-efi/install_devices: 
/dev/disk/by-id/nvme-WDC_CL_SN720_SDAQNTW-512G-2000_-part1, 
/dev/disk/by-id/nvme-WDC_CL_SN720_SDAQNTW-512G-2000_-part1

This was obtained with this LANG/LC_COLLATE:
# echo $LANG
C.UTF-8
# dpkg-reconfigure grub-efi-amd64
│ GRUB EFI system partitions:   
 │
│   
 │
│[*] /dev/nvme1n1p1 (535 MB; /boot/efi) on 512110 MB WDC CL SN720 
SDAQNTW-512G-2000  │
│[*] /dev/nvme0n1p1 (535 MB; ) on 512110 MB WDC CL SN720 SDAQNTW-512G-2000  
 │
# debconf-show grub-efi-amd64 | grep grub-efi/install_devices:
* grub-efi/install_devices: 
/dev/disk/by-id/nvme-WDC_CL_SN720_SDAQNTW-512G-2000_-part1, 
/dev/disk/by-id/nvme-WDC_CL_SN720_SDAQNTW-512G-2000_-part1

We can see that the boxes are properly ticked here.

However:
# export LANG=en_US.UTF-8; dpkg-reconfigure grub-efi-amd64
│ GRUB EFI system partitions:   
  │
│   
  │
│[ ] /dev/nvme1n1p1 (535 MB; /boot/efi) on 512110 MB WDC CL SN720 
SDAQNTW-512G-2000   │
│[ ] /dev/nvme0n1p1 (535 MB; ) on 512110 MB WDC CL SN720 SDAQNTW-512G-2000  
  │

The boxes are not ticked, if I tick them, I get the following:

# debconf-show grub-efi-amd64 | grep grub-efi/install_devices:
* grub-efi/install_devices: 
/dev/disk/by-id/nvme-eui.e8238fa6bf530001001b444-part1, 
/dev/disk/by-id/nvme-eui.e8238fa6bf530001001b4466-part1

I assume the postinst script for grub-pc exhibits the same bug with the
value of grub-pc/install_devices.

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

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

Title:
  grub-efi-amd64: grub-efi/install_devices depends on the value of
  LC_COLLATE/LANG

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1948669] [NEW] linux-image-generic should suggest linux-firmware instead of depending on it

2021-10-25 Thread Louis Sautier
Public bug reported:

Hello,
At the moment, the only way to install linux-modules-extra and keep it 
up-to-date is to rely on linux-image-generic:
# lsb_release -rd
Description:Ubuntu 20.04.3 LTS
Release:20.04
# apt-cache policy linux-image-generic
linux-image-generic:
  Installed: (none)
  Candidate: 5.4.0.89.93
  Version table:
 5.4.0.89.93 500
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
 5.4.0.26.32 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
# apt rdepends linux-modules-extra-5.4.0-89-generic
linux-modules-extra-5.4.0-89-generic
Reverse Depends:
  Depends: linux-image-generic

However, installing linux-image-generic pulls linux-firmware:
# apt depends linux-image-generic
linux-image-generic
  Depends: linux-image-5.4.0-89-generic
  Depends: linux-modules-extra-5.4.0-89-generic
  Depends: linux-firmware
  Depends: intel-microcode
  Depends: amd64-microcode
  Recommends: thermald

I specifically need linux-modules-extra because it contains the r8169
module which some Ethernet  controllers require. The driver doesn't need
any of the firmware blobs but because of the way it is packaged, I end
up creating Ubuntu installations several hundred megabytes larger than
necessary (in my case, these extra megabytes do matter). The initramfs
also gains a few dozen megabytes.

Would it please be possible to either:
- mark linux-firmware as "Recommends" instead of "Depends"?
- create a metapackage that pulls only the latest version of 
linux-modules-extra and nothing else?

In addition, I'm not 100% sure linux-modules-extra should have a hard
dependency on crda or wireless-crda, maybe they could also be marked as
recommended instead?

** Affects: linux-meta (Ubuntu)
 Importance: Undecided
 Status: New

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

Title:
  linux-image-generic should suggest linux-firmware instead of depending
  on it

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-meta/+bug/1948669/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs