- grub-probe sa -t drive...
authorDinko Korunic <kreator@carnet.hr>
Thu, 28 Apr 2011 13:50:17 +0000 (15:50 +0200)
committerDinko Korunic <kreator@carnet.hr>
Thu, 28 Apr 2011 13:50:17 +0000 (15:50 +0200)
debian/postinst

index 146bc1e..8545cb0 100755 (executable)
@@ -234,7 +234,7 @@ EOF
 else
     # Grub2 part
     grub-mkdevicemap --no-floppy
-    grub-install --no-floppy --grub-setup=/bin/true "$(grub-probe /boot/grub)" >/dev/null 2>&1
+    grub-install --no-floppy --grub-setup=/bin/true "$(grub-probe -t drive /boot/grub)" >/dev/null 2>&1
 fi
 echo -n " grub3"
 
@@ -269,7 +269,7 @@ if [ "x$GRUB2" = "xno" ]; then
     fi
 else
     # Grub2 part
-    install_device="$(grub-probe /boot/grub)"
+    install_device="$(grub-probe -t drive /boot/grub)"
 fi
 echo -n " grub4"