Re: [kernel] r16958 - in dists/trunk/linux-2.6/debian: . bin config
On Fri, Mar 04, 2011 at 12:00:48AM +0100, Stefan Lippers-Hollmann wrote:
> Hi
>
> On Tue, Mar 01, 2011 at 05:44:42AM +0000, Ben Hutchings wrote:
> [...]
> > Modified: dists/trunk/linux-2.6/debian/changelog
> > ==============================================================================
> > --- dists/trunk/linux-2.6/debian/changelog Tue Mar 1 02:19:31 2011 (r16957)
> > +++ dists/trunk/linux-2.6/debian/changelog Tue Mar 1 05:44:42 2011 (r16958)
> > @@ -1,3 +1,12 @@
> > +linux-2.6 (2.6.38~rc6-1~experimental.2) UNRELEASED; urgency=low
> > +
> > + [ Ben Hutchings ]
> > + * postinst: Remove specific support for running a ramdisk creator;
> > + warn users that specify one in /etc/kernel-img.conf
> > + * Require initramfs-tools >= 0.94, which installs a postinst hook
>
> initramfs-tools >= 0.94 installs a postinst hook, however it
> unfortunately appears to bail out early, if called from an official
> Debian kernel image (/etc/kernel/postinst.d/initramfs-tools):
Well spotted. Maks, what is the correct minimum?
[...]
> > Modified: dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst
> > ==============================================================================
> > --- dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst Tue Mar 1 02:19:31 2011 (r16957)
> > +++ dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst Tue Mar 1 05:44:42 2011 (r16958)
> > [...]
> > @@ -821,6 +793,10 @@
> > die "Error asking debconf question $question: $seen" if $ret && $ret != 30;
> > }
> >
> > +if ($initrd && ! -e "initrd.img-$version") {
>
> I think this needs to be prepended by the full install path, like:
> if ($initrd && ! -e "${realimageloc}initrd.img-$version") {
[...]
We have already chdir()'d to that directory.
Ben.
--
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
- Albert Camus
Reply to: