* [PATCH] kernel.bbclass: Do not chdir to /boot before running update-alternatives
@ 2012-10-12 18:01 Holger Hans Peter Freyther
2012-10-21 7:42 ` Holger Freyther
0 siblings, 1 reply; 3+ messages in thread
From: Holger Hans Peter Freyther @ 2012-10-12 18:01 UTC (permalink / raw)
To: openembedded-core; +Cc: Holger Hans Peter Freyther
The symlink from uImage-3... to uImage is not created at image creation
time and not properly update on kernel upgrades. This is fixed by removing
the chdir. The other users of update-alternative do not change the directory
before calling it.
---
meta/classes/kernel.bbclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 36bc3c7..28b1e3e 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -245,11 +245,11 @@ do_savedefconfig[nostamp] = "1"
addtask savedefconfig after do_configure
pkg_postinst_kernel-base () {
- cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
+ update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
}
pkg_postrm_kernel-base () {
- cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true
+ update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true
}
inherit cml1
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] kernel.bbclass: Do not chdir to /boot before running update-alternatives
2012-10-12 18:01 [PATCH] kernel.bbclass: Do not chdir to /boot before running update-alternatives Holger Hans Peter Freyther
@ 2012-10-21 7:42 ` Holger Freyther
2012-10-22 15:51 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Holger Freyther @ 2012-10-21 7:42 UTC (permalink / raw)
To: openembedded-core
Holger Hans Peter Freyther <holger@...> writes:
>
> The symlink from uImage-3... to uImage is not created at image creation
> time and not properly update on kernel upgrades. This is fixed by removing
> the chdir. The other users of update-alternative do not change the directory
> before calling it.
Hi,
this patch has not been merged, nor has it received any comments. The symlink
creation for uImage is broken right now and I would be very happy if it could
be fixed.
holger
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kernel.bbclass: Do not chdir to /boot before running update-alternatives
2012-10-21 7:42 ` Holger Freyther
@ 2012-10-22 15:51 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-10-22 15:51 UTC (permalink / raw)
To: Holger Freyther; +Cc: openembedded-core
On Sun, 2012-10-21 at 07:42 +0000, Holger Freyther wrote:
> Holger Hans Peter Freyther <holger@...> writes:
>
> >
> > The symlink from uImage-3... to uImage is not created at image creation
> > time and not properly update on kernel upgrades. This is fixed by removing
> > the chdir. The other users of update-alternative do not change the directory
> > before calling it.
>
> Hi,
>
> this patch has not been merged, nor has it received any comments. The symlink
> creation for uImage is broken right now and I would be very happy if it could
> be fixed.
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-22 16:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 18:01 [PATCH] kernel.bbclass: Do not chdir to /boot before running update-alternatives Holger Hans Peter Freyther
2012-10-21 7:42 ` Holger Freyther
2012-10-22 15:51 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox