Taz_devil <kam3nbg@gmail.com> writes: > Hello, > > From very long time grub-common_1.97~beta3-1~bpo50+1_i386.deb has a > bug with Xen VPS. When apt install it and I try update-grub, I got > this error: > > Searching for GRUB installation directory ... found: /boot/grub > warning: grub-probe can't find drive for /dev/sda1. > grub-probe: error: Cannot find a GRUB drive for /dev/sda1. Check your > device.map. > The noise comes from /etc/grub.d/10_linux and /usr/lib/grub-mkconfig_lib prepare_grub_to_access_device function trying to determine what lines to output to /boot/grub/grub.cfg which would normally look something like: insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set eada0131-31d5-4ccb-872a-cd7ccc5d2011 However with Xen domU that uses no partition tables, grub-probe results in an error since it cannot find the physical disk containing the partition table (/dev/sda in your case, this device does not exist, only /dev/sda1, etc.). I believe as long as the first disk (/dev/sda1 in your case) contains /boot then these warnings can be safely ignored. I wonder if pygrub even honors insmod/search commands. -- Gerald Turner Email: gturner@unzane.com JID: gturner@unzane.com GPG: 0xFA8CD6D5 21D9 B2E8 7FE7 F19E 5F7D 4D0C 3FA0 810F FA8C D6D5
Attachment:
pgprpunp36god.pgp
Description: PGP signature