Re: [kernel] r16958 - in dists/trunk/linux-2.6/debian: . bin config
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):
# kernel-package passes an extra arg
if [ -n "$2" ]; then
if [ -n "${KERNEL_PACKAGE_VERSION}" ]; then
# exit if custom kernel does not need an initramfs
[ "$INITRD" = 'No' ] && exit 0
bootdir=$(dirname "$2")
bootopt="-b ${bootdir}"
else
# official Debian linux-images take care themself
exit 0
fi
fi
and therefore doesn't actually create an initramfs image anymore, after
the corresponding code ($ramdisk_cmd et al.) has been pulled from
debian/templates/temp.image.plain/postinst.
[...]
> 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") {
> + die "Failed to create initrd image.\n";
> +}
> +
> exit 0;
>
> __END__
Regards
Stefan Lippers-Hollmann
Reply to: