I am setting up clonezilla recovery options for some friends and family through g4d. I will only ever have one version of windows installed on their machine, either windows XP or Windows 7.
Is it possible to create a grub4dos entry that will detect if either bootmgr or NTLDR exists and then boot that drive. Otherwise when I setup their machine I have to comment out stuff and I would rather just have a single menu.lst that will work regardless.
Thanks
existing menu.lst
timeout 5 default 0 gfxmenu /message title Boot Windows 7 find --set-root --devices=h /bootmgr && call set bootmgr=%@root^% chainloader %bootmgr%/bootmgr title Boot Windows XP find --set-root --devices=h /NTLDR && call set bootmgr=%@root^% map () %bootmgr% map %bootmgr% () map --rehook find --set-root --ignore-floppies --ignore-cd /ntldr chainloader /ntldr title Restore Clonezilla Image root (hd0,1) kernel /grub/clonezilla/live/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset vga=788 ip=frommedia nosplash ocs_live_run="ocs-live-general" ocs_live_keymap="NONE" ocs_lang="en_US.UTF-8" live-media-path=/grub/clonezilla/live bootfrom=/dev/sda2 toram=filesystem.squashfs ocs_live_batch="yes" ocs_prerun="mount /dev/sda2 /mnt" ocs_prerun1="mount --bind /mnt/grub/clonezilla/images /home/partimag/" ocs_live_run="ocs-sr -b -g auto -e1 auto -e2 -j2 -k -p reboot restoreparts ask_user sda1" initrd /grub/clonezilla/live/initrd.img boot title Create Clonezilla Image root (hd0,1) kernel /grub/clonezilla/live/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset vga=788 ip=frommedia nosplash ocs_live_run="ocs-live-general" ocs_live_keymap="NONE" ocs_lang="en_US.UTF-8" live-media-path=/grub/clonezilla/live bootfrom=/dev/sda2 toram=filesystem.squashfs ocs_live_batch="yes" ocs_prerun="mount /dev/sda2 /mnt" ocs_prerun1="mount --bind /mnt/grub/clonezilla/images /home/partimag/" ocs_live_run="ocs-sr -q2 -b -j2 -z1 -i 2000 -sc -rm-win-swap-hib -p reboot saveparts ask_user sda1" initrd /grub/clonezilla/live/initrd.img boot title Clonezilla (manual) root (hd0,1) kernel /grub/clonezilla/live/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_lang="" vga=788 ip=frommedia nosplash live-media-path=/grub/clonezilla/live bootfrom=/dev/sda2 toram=filesystem.squashfs ocs_live_batch="no" initrd /grub/clonezilla/live/initrd.img boot