From: Dinko Korunic Date: Thu, 28 Apr 2011 14:21:26 +0000 (+0200) Subject: - jos failsafe mehanizama tijekom instalacije alternativnih sektora.. X-Git-Tag: v2.6.32.1~1 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=d8d1fd19ea96225286cc32a60a72aa8d388a1499;p=kernel-cn.git - jos failsafe mehanizama tijekom instalacije alternativnih sektora.. --- diff --git a/debian/postinst b/debian/postinst index 0bac419..7e217c4 100755 --- a/debian/postinst +++ b/debian/postinst @@ -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"