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 02-26-2009, 02:36 PM
"Mahesh T. Pai"
 
Default Bug#517236: linux-image-2.6.28-1-amd64: Post Inst fails - /usr/sbin/mkinitramfs

Package: linux-image-2.6.28-1-amd64
Version: 2.6.28-1
Severity: normal


This is what I get after installing the new kernel.

oot@home:~# aptitude -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following partially installed packages will be configured:
linux-image-2.6.28-1-amd64
0 packages upgraded, 0 newly installed, 0 to remove and 294 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up linux-image-2.6.28-1-amd64 (2.6.28-1) ...
Running depmod.
Running /usr/sbin/mkinitramfs.
/usr/sbin/mkinitramfs: invalid option -- 'c'
/usr/sbin/mkinitramfs: invalid option -- 't'
Terminating...
/usr/sbin/mkinitramfs failed to create initrd image.
Failed to create initrd image.
dpkg: error processing linux-image-2.6.28-1-amd64 (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.28-1-amd64
^[ localepurge: checking system for new locale ...
localepurge: processing locale files ...
localepurge: processing man pages ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up linux-image-2.6.28-1-amd64 (2.6.28-1) ...
Running depmod.
Running /usr/sbin/mkinitramfs.
/usr/sbin/mkinitramfs: invalid option -- 'c'
/usr/sbin/mkinitramfs: invalid option -- 't'
Terminating...
/usr/sbin/mkinitramfs failed to create initrd image.
Failed to create initrd image.
dpkg: error processing linux-image-2.6.28-1-amd64 (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.28-1-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done


But this works:-

oot@home:~# update-initramfs -k 2.6.28-1-amd64 -c
update-initramfs: Generating /boot/initrd.img-2.6.28-1-amd64



-- Package-specific info:

-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages linux-image-2.6.28-1-amd64 depends on:
ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii initramfs-tools [linux-initra 0.92o tools for generating an initramfs
ii module-init-tools 3.4-1 tools for managing Linux kernel mo

linux-image-2.6.28-1-amd64 recommends no packages.

Versions of packages linux-image-2.6.28-1-amd64 suggests:
ii grub 0.97-51 GRand Unified Bootloader (Legacy v
pn linux-doc-2.6.28 <none> (no description available)

-- debconf information:
linux-image-2.6.28-1-amd64/postinst/depmod-error-initrd-2.6.28-1-amd64: false
shared/kernel-image/really-run-bootloader: true
linux-image-2.6.28-1-amd64/postinst/bootloader-error-2.6.28-1-amd64:
linux-image-2.6.28-1-amd64/postinst/depmod-error-2.6.28-1-amd64: false
linux-image-2.6.28-1-amd64/postinst/bootloader-test-error-2.6.28-1-amd64:
linux-image-2.6.28-1-amd64/postinst/old-system-map-link-2.6.28-1-amd64: true
linux-image-2.6.28-1-amd64/preinst/initrd-2.6.28-1-amd64:
linux-image-2.6.28-1-amd64/preinst/bootloader-initrd-2.6.28-1-amd64: true
linux-image-2.6.28-1-amd64/postinst/old-initrd-link-2.6.28-1-amd64: true
linux-image-2.6.28-1-amd64/postinst/old-dir-initrd-link-2.6.28-1-amd64: true
linux-image-2.6.28-1-amd64/preinst/failed-to-move-modules-2.6.28-1-amd64:
linux-image-2.6.28-1-amd64/preinst/elilo-initrd-2.6.28-1-amd64: true
linux-image-2.6.28-1-amd64/preinst/lilo-initrd-2.6.28-1-amd64: true
linux-image-2.6.28-1-amd64/preinst/overwriting-modules-2.6.28-1-amd64: true
linux-image-2.6.28-1-amd64/preinst/lilo-has-ramdisk:
linux-image-2.6.28-1-amd64/preinst/abort-overwrite-2.6.28-1-amd64:
linux-image-2.6.28-1-amd64/preinst/abort-install-2.6.28-1-amd64:
linux-image-2.6.28-1-amd64/postinst/kimage-is-a-directory:
linux-image-2.6.28-1-amd64/postinst/create-kimage-link-2.6.28-1-amd64: true
linux-image-2.6.28-1-amd64/prerm/removing-running-kernel-2.6.28-1-amd64: true
linux-image-2.6.28-1-amd64/prerm/would-invalidate-boot-loader-2.6.28-1-amd64: true



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-26-2009, 04:15 PM
maximilian attems
 
Default Bug#517236: linux-image-2.6.28-1-amd64: Post Inst fails - /usr/sbin/mkinitramfs

On Thu, Feb 26, 2009 at 09:06:21PM +0530, Mahesh T. Pai wrote:
> Package: linux-image-2.6.28-1-amd64
> Version: 2.6.28-1
> Severity: normal
>
>
> This is what I get after installing the new kernel.
>
> oot@home:~# aptitude -f install
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Reading extended state information
> Initializing package states... Done
> The following partially installed packages will be configured:
> linux-image-2.6.28-1-amd64
> 0 packages upgraded, 0 newly installed, 0 to remove and 294 not upgraded.
> Need to get 0B of archives. After unpacking 0B will be used.
> Setting up linux-image-2.6.28-1-amd64 (2.6.28-1) ...
> Running depmod.
> Running /usr/sbin/mkinitramfs.
> /usr/sbin/mkinitramfs: invalid option -- 'c'
> /usr/sbin/mkinitramfs: invalid option -- 't'
> Terminating...
> /usr/sbin/mkinitramfs failed to create initrd image.
> Failed to create initrd image.
> dpkg: error processing linux-image-2.6.28-1-amd64 (--configure):
> subprocess post-installation script returned error exit status 2
> Errors were encountered while processing:
> linux-image-2.6.28-1-amd64
> ^[ localepurge: checking system for new locale ...
> localepurge: processing locale files ...
> localepurge: processing man pages ...
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> A package failed to install. Trying to recover:
> Setting up linux-image-2.6.28-1-amd64 (2.6.28-1) ...
> Running depmod.
> Running /usr/sbin/mkinitramfs.
> /usr/sbin/mkinitramfs: invalid option -- 'c'
> /usr/sbin/mkinitramfs: invalid option -- 't'
> Terminating...
> /usr/sbin/mkinitramfs failed to create initrd image.
> Failed to create initrd image.
> dpkg: error processing linux-image-2.6.28-1-amd64 (--configure):
> subprocess post-installation script returned error exit status 2
> Errors were encountered while processing:
> linux-image-2.6.28-1-amd64
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Reading extended state information
> Initializing package states... Done
>
>
> But this works:-
>
> oot@home:~# update-initramfs -k 2.6.28-1-amd64 -c
> update-initramfs: Generating /boot/initrd.img-2.6.28-1-amd64
>

please post output of:
cat /etc/kernel-img.conf

--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-27-2009, 01:49 AM
"Mahesh T. Pai"
 
Default Bug#517236: linux-image-2.6.28-1-amd64: Post Inst fails - /usr/sbin/mkinitramfs

(dropping all cc's; hope that is all right.)

maximilian attems said on Thu, Feb 26, 2009 at 06:15:12PM +0100,:

>
> please post output of:
> cat /etc/kernel-img.conf

$ cat /etc/kernel-img.conf
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = yes
postinst_hook = update-grub
postrm_hook = update-grub
ramdisk = /usr/sbin/mkinitramfs


Thanks for your attention. I find that subsequent scripts
(update-grub, etc) have not been run.

--
Mahesh T. Pai || http://paivakil.blogspot.com
Free Software - it is free as in FREEDOM



--
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 07:11 PM.

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