Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 160102 Details for
Bug 231472
>=sys-apps/debianutils-2.29 breaks installkernel for non-"modern" systems
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
debian-utils-2.29-installkernel.patch
debian-utils-2.29-installkernel.patch (text/plain), 1.56 KB, created by
Jeroen Roovers (RETIRED)
on 2008-07-11 01:13:08 UTC
(
hide
)
Description:
debian-utils-2.29-installkernel.patch
Filename:
MIME Type:
Creator:
Jeroen Roovers (RETIRED)
Created:
2008-07-11 01:13:08 UTC
Size:
1.56 KB
patch
obsolete
>--- /root/bin/installkernel 2008-07-11 02:20:47.000000000 +0200 >+++ /root/bin/installkernel-mkboot 2008-07-11 03:12:21.000000000 +0200 >@@ -42,10 +42,9 @@ > # The presence of "$dir/$1" is unusual in modern intallations, and > # the results are mostly unused. So only recreate them if they > # already existed. >- if test -L "$dir/$1"; then >- if [ "$(readlink -f ${dir}/${1})" = "${dir}/${1}-${ver}" ]; then >- ln -sf "$1-$ver.old" "$dir/$1.old" >- fi >+ if test -L "$dir/$1" && >+ [ "$(readlink -f ${dir}/${1})" = "${dir}/${1}-${ver}" ]; then >+ ln -sf "$1-$ver.old" "$dir/$1.old" > ln -sf "$1-$ver" "$dir/$1" > else > mv "$dir/$1" "$dir/$1.old" >@@ -67,13 +66,12 @@ > updatever config "$config" > fi > >-## This is very far from existing practice in modern Debian installations >-######################################################################## >-# if [ "$(basename $img)" = "vmlinux" ] && [ "$(id -u)" = "0" ] ; then # >-# mkboot -i ${dir}/vmlinux-${ver} # >-# else # >-# mkboot -i ${dir}/vmlinuz-${ver} # >-# fi # >-######################################################################## >+if [ "$(id -u)" = "0" ]; then >+ if [ "$(basename $img)" = "vmlinux" ]; then >+ test -L "$dir/vmlinux" && mkboot -i ${dir}/vmlinux-${ver} >+ else >+ test -L "$dir/vmlinuz" && mkboot -i ${dir}/vmlinuz-${ver} >+ fi >+fi > > exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231472
:
160097
|
160100
|
160102
|
184863