Comment 12 for bug 1834250

Revision history for this message
Gordon (linux-web-expert) wrote :

Confirmed from comment #11 by mbdev

Adding a global_filter to line 151 just after the default section corrected the problem.

Before adding the filter to /etc/lvm/lvm.conf I was getting this:

```
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
Found linux image: /boot/vmlinuz-5.3.0-46-lowlatency
```

After adding the comment, it seems to be corrected:

```
$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.0-46-lowlatency
Found initrd image: /boot/initrd.img-5.3.0-46-lowlatency
Found linux image: /boot/vmlinuz-5.3.0-45-lowlatency
Found initrd image: /boot/initrd.img-5.3.0-45-lowlatency
Found linux image: /boot/vmlinuz-5.3.0-42-lowlatency
Found initrd image: /boot/initrd.img-5.3.0-42-lowlatency
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
```

Wondering if there is any way to detect removable media not connected which was the source of my issue since my internal drives are NVMe and do not use SDx, those were USB keys as I recall.