X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=kernel-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=14968366e004417dda9e36c74fbcd98667908b91;hp=a4b757778ac2c97dab98e618306022d37c94cc27;hb=18b392155711e402374270ab2f90921fe2b6bc44;hpb=d19c2c3da15c2b8550146e66031fb51938cd125f diff --git a/debian/postinst b/debian/postinst index a4b7577..1496836 100755 --- a/debian/postinst +++ b/debian/postinst @@ -169,11 +169,14 @@ if [ ! -s "$device_map" ]; then mv -f "$device_map.old" "$device_map" fi -:q!else +else rm -f "$device_map.old" fi echo -n " grub4" +# import GRUB helper functions (again, updated device map) +. /usr/share/kernel-2.6-cn/grub-functions.sh + # get install device (0x80 BIOS device) install_device=$(grep '^(hd0)' "$device_map" | \ sed -e 's%[^[:space:]]*[[:space:]]*\([^[:space:]]*\)%\1%')