+
+# oops, install device is a symlink...
+if [ -h "$install_device" ]; then
+ install_device_resolved=$(resolve_symlink "$install_device")
+ if [ -z "$install_device_resolved" ]; then
+ install_device_resolved="$install_device"
+ fi
+ # try to fix device map with symlink resolved device
+ if [ "x$install_device_resolved" != "x$install_device" ]; then
+ cp_check_and_sed '^(hd0)' \
+ "s;^(hd0).*;(hd0) $install_device_resolved" "$device_map" \
+ || true
+ fi
+fi
+echo -n " grub5"
+
+# install GRUB loader
+if ! grub-install --no-floppy "$install_device" >/dev/null 2>&1; then
+ echo "."
+ echo "CN: FATAL ERROR while running grub-install!"
+ echo "CN: Do not reboot your server and report this to OTRS immediately!"
+ exit 1
+fi
+echo -n " grub6"