FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 11-08-2009, 12:18 PM
Sebastian Andrzej Siewior
 
Default Bug#555093: Missing kernel-img.conf makes a debian kernel not installable

Package: linux-2.6
Version: 2.6.31-1
Severity: normal
Tags: patch

There is no /etc/kernel-img.con on a fresh debootstrap sid. Installing a
kernel leads to:

|mikejones:/var/lib# dpkg --configure -a
|Setting up linux-image-2.6.31-1-amd64 (2.6.31-1) ...
|Running depmod.
|Running update-initramfs.
|update-initramfs: Generating /boot/initrd.img-2.6.31-1-amd64
|Error retreiving answer for linux-image-2.6.31-1-amd64/postinst/create-kimage-link-2.6.31-1-amd64:
| linux-image-2.6.31-1-amd64/postinst/create-kimage-link-2.6.31-1-amd64 doesn't exist at
| /var/lib/dpkg/info/linux-image-2.6.31-1-amd64.postinst line 522, <STDIN> line 3.
|dpkg: error processing linux-image-2.6.31-1-amd64 (--configure):
| subprocess installed post-installation script returned error exit status 9

As far as I understand debconf, there must be a template and input() for
${package_name}/postinst/create-kimage-link-$version in order to get a
value saved. Since I did not find it I guess that this can't work.

If the bootloader is palo than the answer is ignored anyway so the
question is not required there.

kernel-img.conf(5) says that do_symlinks defaults to yes.

This could also fix piuparts [0].

[0] http://piuparts.debian.org/sid/fail/linux-image-2.6.31-1-amd64_2.6.31-1.log

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
debian/templates/temp.image.plain/postinst | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/debian/templates/temp.image.plain/postinst b/debian/templates/temp.image.plain/postinst
index 5e827de..d4063ef 100644
--- a/debian/templates/temp.image.plain/postinst
+++ b/debian/templates/temp.image.plain/postinst
@@ -514,28 +514,17 @@ sub handle_missing_link {
else {
if (! $have_conffile) {
my $ret;
- my $answer=';
$do_symlink = "Yes";
- my $question = "${package_name}/postinst/create-kimage-link-$version";

- ($ret,$answer) = get("$question");
- die "Error retreiving answer for $question: $answer" if $ret;
-
- $answer =~ s/^s+//;
- $answer =~ s/s+$//;
- $do_symlink = "No" if $answer =~ /^(f|n)/i;
-
if (open(CONF, ">$CONF_LOC")) {
print CONF "# Kernel Image management overrides
";
print CONF "# See kernel-img.conf(5) for details
";
if ($loader =~ /palo/i) {
print CONF "link_in_boot = Yes
";
- print CONF "do_symlinks = Yes
";
print CONF "relative_links = Yes
";
print CONF "do_bootloader = No
";
- } else {
- print CONF "do_symlinks = $do_symlink
";
}
+ print CONF "do_symlinks = $do_symlink
";
close CONF;
}
$have_conffile = "Yes";
--
1.6.5.2




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-08-2009, 07:20 PM
maximilian attems
 
Default Bug#555093: Missing kernel-img.conf makes a debian kernel not installable

On Sun, 08 Nov 2009, Sebastian Andrzej Siewior wrote:

> Package: linux-2.6
> Version: 2.6.31-1
> Severity: normal
> Tags: patch
>
> There is no /etc/kernel-img.con on a fresh debootstrap sid. Installing a
> kernel leads to:
>

thanks perfect analysis and patch, applied.

nuked that templated when was axing useless pieces out of postinst.
my bad had overlooked usage. fix will be in 2.6.31-2.

reverse symlinks need to die for 2.6.32,
if you want to axe more that be the direction



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 10:49 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org