|  | 
| 用于启动wubi系统的grub2的配置文件 set show_panic_message=true
 
 if search -s -f -n /ubuntu/disks/root.disk; then
 if loopback loop0 /ubuntu/disks/root.disk; then
 set root=(loop0)
 if [ -e /boot/grub/grub.cfg ]; then
 if configfile /boot/grub/grub.cfg; then
 set show_panic_message=false
 fi
 else [ -e /grub/grub.cfg ]; then
 if configfile /grub/grub.cfg; then
 set show_panic_message=false
 fi
 fi
 fi
 fi
 
 if [ ${show_panic_message} = true ]; then
 echo "It is not possible to boot from the Ubuntu image."
 echo "Please verify that the Ubuntu installation was not removed."
 echo "If that is not the case, please check that the Windows filesystem"
 echo "is not corrupted: reboot into Windows and run: chkdsk /r"
 echo "Then try again."
 fi
 
 | 
 |