echo "CN: Detected GRUB2 installation, will try to use it."
GRUB2="yes"
if [ -e /boot/grub/menu.lst ]; then
echo "CN: Detected GRUB2 installation, will try to use it."
GRUB2="yes"
if [ -e /boot/grub/menu.lst ]; then
# ln -s ../udev.rules /etc/udev/rules.d/udev.rules
#fi
udevadm control --reload_rules >/dev/null 2>&1 || true
# ln -s ../udev.rules /etc/udev/rules.d/udev.rules
#fi
udevadm control --reload_rules >/dev/null 2>&1 || true
# this will work for both Grub1 and Grub2
if ! grub-install --no-floppy "$install_device" >/dev/null 2>&1; then
echo "."
# this will work for both Grub1 and Grub2
if ! grub-install --no-floppy "$install_device" >/dev/null 2>&1; then
echo "."