Skip to contentSkip to conversation

make device model can work with no ide or floop disk

PATCH New Xiaofeng Ling 1 participant 1 message Sep 5, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make device model can work with no ide or floop disk

This patch make device model can work with no ide disk or floop disk. So that unmodified guest can boot with vbd.

tools/ioemu/vl.c Mon Sep 5 04:01:42 2005 renamed from tools/ioemu/vl.c Mon Sep 5 04:00:27 2005 +1 -1
diff -r 93d56fca5840 -r 94b8cdd147fd tools/ioemu/vl.c
@@ -2730,7 +2730,7 @@
 
     if (!linux_boot && hd_filename[0] == '\0' && hd_filename[2] == '\0' &&
         fd_filename[0] == '\0')
-        help();
+        printf("warning: no disk configured!\n");
 
     /* boot to cd by default if no hard disk */
     if (hd_filename[0] == '\0' && boot_device == 'c') {