Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 231472 | Differences between
and this patch

Collapse All | Expand All

(-)installkernel (-3 / +4 lines)
Lines 42-50 Link Here
42
    # The presence of "$dir/$1" is unusual in modern intallations, and
42
    # The presence of "$dir/$1" is unusual in modern intallations, and
43
    # the results are mostly unused.  So only recreate them if they
43
    # the results are mostly unused.  So only recreate them if they
44
    # already existed.
44
    # already existed.
45
    if test -L "$dir/$1" &&
45
    if test -L "$dir/$1"; then
46
        [ "$(readlink -f ${dir}/${1})" = "${dir}/${1}-${ver}" ]; then
46
        if [ "$(readlink -f ${dir}/${1})" = "${dir}/${1}-${ver}" ]; then
47
        ln -sf "$1-$ver.old" "$dir/$1.old"
47
            ln -sf "$1-$ver.old" "$dir/$1.old"
48
        fi
48
        ln -sf "$1-$ver" "$dir/$1"
49
        ln -sf "$1-$ver" "$dir/$1"
49
    else
50
    else
50
        mv "$dir/$1" "$dir/$1.old"
51
        mv "$dir/$1" "$dir/$1.old"
(-)installkernel (-8 / +7 lines)
Lines 66-78 Link Here
66
  updatever config "$config"
66
  updatever config "$config"
67
fi
67
fi
68
68
69
## This is very far from existing practice in modern Debian installations
69
if test -L "$dir/vmlinu[xz]" && \
70
########################################################################
70
  [ "$(basename $img)" = "vmlinux" ] \
71
# if [ "$(basename $img)" = "vmlinux" ] && [ "$(id -u)" = "0" ] ; then #
71
  && [ "$(id -u)" = "0" ] ; then
72
#   mkboot -i ${dir}/vmlinux-${ver}                                    #
72
  mkboot -i ${dir}/vmlinux-${ver}
73
# else                                                                 #
73
else
74
#   mkboot -i ${dir}/vmlinuz-${ver}                                    #
74
  mkboot -i ${dir}/vmlinuz-${ver}
75
# fi                                                                   #
75
fi
76
########################################################################
77
 
76
 
78
exit 0
77
exit 0

Return to bug 231472