- jos failsafe mehanizama tijekom instalacije alternativnih sektora..
authorDinko Korunic <kreator@carnet.hr>
Thu, 28 Apr 2011 14:21:26 +0000 (16:21 +0200)
committerDinko Korunic <kreator@carnet.hr>
Thu, 28 Apr 2011 14:21:26 +0000 (16:21 +0200)
debian/postinst

index 0bac419..7e217c4 100755 (executable)
@@ -330,8 +330,11 @@ if [ "x$GRUB2" = "xyes" ]; then
     # Grub2 part
     db_get grub-pc/install_devices
     for i in `echo $RET | sed -e 's/,/ /g'`; do
-        read_device="$(readlink -f "$i")"
-        grub-install --force --no-floppy $read_device
+        real_device="$(readlink -f "$i")"
+        if [ -e "$real_device" ]; then
+            grub-install --force --no-floppy $real_device \
+                >/dev/null 2>&1 || true
+        fi
     done
 fi
 echo -n " grub8"