When trying to “aptitude upgrade” a diskless Ubuntu 10.04 machine I gen an arror:
update-initramfs: Generating /boot/initrd.img-2.6.32-23-generic Running postinst hook script /usr/sbin/update-grub. /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?). User postinst hook script [/usr/sbin/update-grub] exited with value 1 dpkg: error processing linux-image-2.6.32-23-generic (--configure): subprocess installed post-installation script returned error exit status 1
It means that grub cannot write a MBR to the disk. But… I don’t have a disk! So I don’t need grub at all. And I don’t need a Linux kernel either because it is loaded from a tftp server!
So the simplest workaround-solution is just to remove these packages:
- linux-image-2.6.xx-xx-generic (x = any number)
- linux-image-generic
- linux-generic
- grub-pc
- grub-common

Thanks. solve my problem.
Thanks, solved my problems too
I just removed grub