今天在升级一个基于Xen的Debian 6 x64 系统的 内核时候 报了一个错误。
使用命令为
apt-get update apt-get upgrade
错误为
Searching for GRUB installation directory ... found: /boot/grub warning: grub-probe can't find drive for /dev/xvda1. grub-probe: error: cannot find a GRUB drive for /dev/xvda1. Check your device.map. dpkg: error processing linux-image-2.6.32-5-amd64 (--configure): subprocess installed post-installation script returned error exit status 2
然后看了一下是因为虚拟系统的关系没有/dev/xvda 这个设备 所以找不到GRUB
于是动手开始手动建立设备并修改更新所需的命令脚本。