X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=79a5a79038bb11e9b0930a30aab473e7c8f7da08;hb=392974fc96fbad183b29680810f2c6e424cc1deb;hp=45f8046cd28573bb1cb23ceea597429906285c1f;hpb=3404916f2b3bab88e5d8bcd8ef0a339f6d980e85;p=kernel-cn.git diff --git a/debian/postinst b/debian/postinst index 45f8046..79a5a79 100755 --- 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 -else + +:q!else 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 - 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