@brokenman:
There is more to it, Hedayat the author just took the script of os-prober, and modified it to generate grub1 menu.lst, which are quite akin to syslinux menu entries:
http://hedayatvk.wordpress.com/2011/02/ ... os-prober/
modify grub2’s os_prober script to generate menu entries for Grub1, the script is here :
http://hedayat.fedorapeople.org/scripts ... -prober.sh
I don't get it why for now, but I am unable to get it running on my linuxbox. Sometimes I am so linux unwise. Maybe you could find a way to get it running.
The script which is called grub1-other-os-prober.sh will work given you have the latest version of os-prober.txz installed on the system. It will give the following output on my system:
Code: Select all
root@porteus:~/Desktop/tmp/777# ./grub1-other-os-prober.sh
No volume groups found
Found elementary OS Luna (0.2) on /dev/sda2
title elementary OS, with Linux 3.2.0-67-generic-pae (on /dev/sda2)
grep: /boot/grub/device.map: No such file or directory
root (,1)
kernel /boot/vmlinuz-3.2.0-67-generic-pae root=UUID=3e91dea6-a4a8-47a6-b6a9-9ee4391caee3 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-67-generic-pae
title elementary OS, with Linux 3.2.0-67-generic-pae (recovery mode) (on /dev/sda2)
grep: /boot/grub/device.map: No such file or directory
root (,1)
kernel /boot/vmlinuz-3.2.0-67-generic-pae root=UUID=3e91dea6-a4a8-47a6-b6a9-9ee4391caee3 ro recovery nomodeset
initrd /boot/initrd.img-3.2.0-67-generic-pae
title elementary OS, with Linux 3.2.0-51-generic-pae (on /dev/sda2)
grep: /boot/grub/device.map: No such file or directory
root (,1)
kernel /boot/vmlinuz-3.2.0-51-generic-pae root=UUID=3e91dea6-a4a8-47a6-b6a9-9ee4391caee3 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-51-generic-pae
title elementary OS, with Linux 3.2.0-51-generic-pae (recovery mode) (on /dev/sda2)
grep: /boot/grub/device.map: No such file or directory
root (,1)
kernel /boot/vmlinuz-3.2.0-51-generic-pae root=UUID=3e91dea6-a4a8-47a6-b6a9-9ee4391caee3 ro recovery nomodeset
initrd /boot/initrd.img-3.2.0-51-generic-pae
Found Bodhi 2.4.0 (12.04) on /dev/sda7
title Bodhi Linux, with Linux 3.8.0-19-generic (on /dev/sda7)
grep: /boot/grub/device.map: No such file or directory
root (,6)
kernel /boot/vmlinuz-3.8.0-19-generic root=UUID=ee218332-3e92-4133-a1df-fcbeb2d9911e ro splash quiet $vt_handoff
initrd /boot/initrd.img-3.8.0-19-generic
title Bodhi Linux, with Linux 3.8.0-19-generic (recovery mode) (on /dev/sda7)
grep: /boot/grub/device.map: No such file or directory
root (,6)
kernel /boot/vmlinuz-3.8.0-19-generic root=UUID=ee218332-3e92-4133-a1df-fcbeb2d9911e ro recovery nomodeset
initrd /boot/initrd.img-3.8.0-19-generic
root@porteus:~/Desktop/tmp/777#
It has found the other instances of linux installations on my box, that is elementary and bodhi linux. But the output has some little errors.
However, it could be improved with as search function looking into the /etc/grub.d/40_custom files, where I had set grub2 for my porteus installations or simply by looking in my grub legacy menu.lst files.
With some little improvements, it could yield the necessary information missing to grubconfig which is a grub legacy installer with a deficient os-prober for grub2 os installations.