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

(-)/root/bin/installkernel (-12 / +10 lines)
Lines 42-51 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"; then
45
    if test -L "$dir/$1" &&
46
        if [ "$(readlink -f ${dir}/${1})" = "${dir}/${1}-${ver}" ]; then
46
        [ "$(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
49
        ln -sf "$1-$ver" "$dir/$1"
48
        ln -sf "$1-$ver" "$dir/$1"
50
    else
49
    else
51
        mv "$dir/$1" "$dir/$1.old"
50
        mv "$dir/$1" "$dir/$1.old"
Lines 67-79 Link Here
67
  updatever config "$config"
66
  updatever config "$config"
68
fi
67
fi
69
68
70
## This is very far from existing practice in modern Debian installations
69
if [ "$(id -u)" = "0" ]; then
71
########################################################################
70
  if [ "$(basename $img)" = "vmlinux" ]; then
72
# if [ "$(basename $img)" = "vmlinux" ] && [ "$(id -u)" = "0" ] ; then #
71
    test -L "$dir/vmlinux" && mkboot -i ${dir}/vmlinux-${ver}
73
#   mkboot -i ${dir}/vmlinux-${ver}                                    #
72
  else
74
# else                                                                 #
73
    test -L "$dir/vmlinuz" && mkboot -i ${dir}/vmlinuz-${ver}
75
#   mkboot -i ${dir}/vmlinuz-${ver}                                    #
74
  fi
76
# fi                                                                   #
75
fi
77
########################################################################
78
 
76
 
79
exit 0
77
exit 0

Return to bug 231472