[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#592924: os-prober MINIX detection



Hi Joey,

Thanks for your advice, retaining the old check is very reasonable. 
Another patch will be sent to GRUB very soon, to utilize its result.

I've modified the patch:

Index: packages/os-prober/os-probes/mounted/x86/80minix
===================================================================
--- packages/os-prober/os-probes/mounted/x86/80minix    (revision 64312)
+++ packages/os-prober/os-probes/mounted/x86/80minix    (working copy)
@@ -7,11 +7,20 @@
 dir="$2"
 type="$3"

-if [ "$type" = minix ] && [ -f "$dir/minix" ]; then
-       # XXX will chain loading work?
-        label="$(count_next_label Minix)"
-       result "$partition:Minix:$label:chain"
-       exit 0
+if [ "$type" = minix ] || [ "$type" = ext2 ] ; then
+       if [ -f "$dir/minix" ] || [ -e "$dir/boot/image_big" ]; then
+               if [ -e "$dir/boot/image_latest" ]; then
+                       boot="minix"
+               else
+                       boot="chain"
+               fi
+
+               label="$(count_next_label Minix)"
+               result "$partition:Minix:$label:$boot"
+               exit 0
+       else
+               exit 1
+       fi
 else
       exit 1
 fi




--
Best Regards!
Fam Zheng

Reply to: