X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=kernel-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=8545cb0af359dbc3d670412ea1370bec0d5c7a15;hp=146bc1e0198dcdfea0dd6751d388820a966de28f;hb=050a532429b04f95f678e8292282b6d644931a3e;hpb=110c86bdb7f0b5bd904e8baa95e8673ecfe28719 diff --git a/debian/postinst b/debian/postinst index 146bc1e..8545cb0 100755 --- a/debian/postinst +++ b/debian/postinst @@ -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"