Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 275957 Details for
Bug 370207
sys-apps/kexec-tools - kexec init script does not detect kernel image and initrd properly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Detect kernels and initrds created with genkernel.
kexec.init.diff (text/plain), 1.22 KB, created by
Łukasz Stelmach
on 2011-06-05 23:05:26 UTC
(
hide
)
Description:
Detect kernels and initrds created with genkernel.
Filename:
MIME Type:
Creator:
Łukasz Stelmach
Created:
2011-06-05 23:05:26 UTC
Size:
1.22 KB
patch
obsolete
>--- /usr/portage/sys-apps/kexec-tools/files/kexec.init 2010-10-29 08:44:51.000000000 +0200 >+++ /etc/init.d/kexec 2011-06-05 22:11:53.013686580 +0200 >@@ -8,9 +8,24 @@ > } > > image_path() { >- local x= kver=$(uname -r) >+ local x= kver=$(uname -r) karch=$(uname -m) > for x in "${KNAME:-bzImage}" vmlinuz \ >- bzImage-"${kver}" vmlinuz-"${kver}" ; do >+ bzImage-"${kver}" vmlinuz-"${kver}" \ >+ kernel-genkernel-"${karch}"-"${kver}"; do >+ if [ -e "${BOOTPART}/${x}" ] ; then >+ echo "${BOOTPART}/${x}" >+ return 0 >+ fi >+ done >+ >+ return 1 >+} >+ >+initrd_path() { >+ local x= kver=$(uname -r) karch=$(uname -m) >+ for x in "${INITRD:-initrd}" \ >+ initrd-"${kver}" initramfs-"${kver}" \ >+ initramfs-genkernel-"${karch}"-"${kver}"; do > if [ -e "${BOOTPART}/${x}" ] ; then > echo "${BOOTPART}/${x}" > return 0 >@@ -56,11 +71,9 @@ > fi > > # Use the default initrd if it exists and none other given >- if [ -z "${INITRD}" -a -e "${BOOTPART}"/initrd ] ; then >- INITRD="${BOOTPART}/initrd" >- fi >- if [ -e "${INITRD}" ] ; then >- initrdopt="--initrd=${INITRD}" >+ initrd="$(initrd_path)" >+ if [ -n "${initrd}" -a -e "${initrd}" ] ; then >+ initrdopt="--initrd=${initrd}" > fi > > kexec -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
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 370207
: 275957 |
299047