From d8d1fd19ea96225286cc32a60a72aa8d388a1499 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Thu, 28 Apr 2011 16:21:26 +0200 Subject: [PATCH] - jos failsafe mehanizama tijekom instalacije alternativnih sektora.. --- debian/postinst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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" -- 1.7.10.4