grub-update detecting all containers OS

luison

Renowned Member
Feb 22, 2010
159
6
83
Spain
elsurexiste.com
We recently upgraded to PVE4 and migrated all containers to LVM-thin drives. We've been removing some old kernels and on one of them grup-update was executed and I noticed that grub is checking all drives, including the containers one.

Found Debian GNU/Linux (7.7) on /dev/sdb2
/usr/sbin/grub-probe: error: disk `lvmid/QtJiw0-wsDf-A2zh-2v2y-7JVA-NhPQ-TfjQlN/phCDlj-1XAM-VZnl-RzRy-g3kf-eeUB-dBcgmb' not found.
Found Debian GNU/Linux (8.5) on /dev/mapper/pve-vm--115--disk--1
done​


I understand grub config is related to disabling /etc/grub.d/30_os-prober or hacking it somehow (like in https://ubuntuforums.org/showthread.php?t=1412654) to only check the drives you want.

Before getting to that I was wondering if there are any other cleaner methods. Thanks.
 
Could you post the output of "pveversion -v" and "grub-probe --version"
 
pveversion:
proxmox-ve: 4.2-56 (running kernel: 4.4.6-1-pve)
pve-manager: 4.2-17 (running version: 4.2-17/e1400248)
pve-kernel-4.4.6-1-pve: 4.4.6-48
pve-kernel-4.4.13-1-pve: 4.4.13-56
pve-kernel-2.6.32-45-pve: 2.6.32-174
pve-kernel-4.4.10-1-pve: 4.4.10-54
lvm2: 2.02.116-pve2
corosync-pve: 2.4.0-1
libqb0: 1.0-1
pve-cluster: 4.0-43
qemu-server: 4.0-85
pve-firmware: 1.1-8
libpve-common-perl: 4.0-72
libpve-access-control: 4.0-19
libpve-storage-perl: 4.0-56
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-qemu-kvm: 2.6-1
pve-container: 1.0-72
pve-firewall: 2.0-29
pve-ha-manager: 1.0-33
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 2.0.3-4
lxcfs: 2.0.2-pve1
cgmanager: not correctly installed
criu: 1.6.0-1
fence-agents-pve: 4.0.20-1

grub-probe (GRUB) 2.02-pve4

@mir, I understand that if I remove /etc/grub.d/30_os-prober no search would be performed, but I just think is the containers that should not be included.
 
Add this line to /etc/default/grub

GRUB_DISABLE_OS_PROBER=true

and update grub with "update-grub2"