projects
/
kernel-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Valentinov fix za cp_check_and_sed gresku vezanu uz device map
[kernel-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
45f8046
..
79a5a79
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-167,7
+167,8
@@
if [ ! -s "$device_map" ]; then
if [ -f "$device_map.old" ]; then
mv -f "$device_map.old" "$device_map"
fi
if [ -f "$device_map.old" ]; then
mv -f "$device_map.old" "$device_map"
fi
-else
+
+:q!else
rm -f "$device_map.old"
fi
echo -n " grub4"
rm -f "$device_map.old"
fi
echo -n " grub4"
@@
-190,8
+191,8
@@
if [ -h "$install_device" ]; then
fi
# try to fix device map with symlink resolved device
if [ "x$install_device_resolved" != "x$install_device" ]; then
fi
# try to fix device map with symlink resolved device
if [ "x$install_device_resolved" != "x$install_device" ]; then
- cp_check_and_sed '^(hd0)' \
- "s;^(hd0).*;(hd0) $install_device_resolved" "$device_map" \
+ cp_check_and_sed '^\(hd0\)' \
+ "s;^(hd0).*;(hd0) $install_device_resolved;" "$device_map" \
|| true
fi
fi
|| true
fi
fi