Bug#524179: initramfs-tools: mkinitramfs-kpkg fails silently if sysfs is not mounted
Package: initramfs-tools
Version: 0.92o
Severity: normal
i have two debian installations on my harddisk(s).
a. the main installation on /dev/md0
b. a second installation on /dev/sda2
1. i boot into /dev/md0
2. mount /dev/sda2 /mnt && chroot /mnt
(from now on *inside* chroot)
3. mount /proc
4. apt-get update && apt-get -u dist-upgrade
-> a new kernel is installed but mkinitramfs-kpkg fails silently:
root@IMAGE / # apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up linux-image-2.6.26-1-amd64 (2.6.26-13lenny2) ...
Running depmod.
Running mkinitramfs-kpkg.
mkinitramfs-kpkg failed to create initrd image.
Failed to create initrd image.
dpkg: error processing linux-image-2.6.26-1-amd64 (--configure):
subprocess post-installation script returned error exit status 9
Setting up linux-image-2.6.26-2-amd64 (2.6.26-15) ...
Running depmod.
Running mkinitramfs-kpkg.
mkinitramfs-kpkg failed to create initrd image.
Failed to create initrd image.
dpkg: error processing linux-image-2.6.26-2-amd64 (--configure):
subprocess post-installation script returned error exit status 9
dpkg: dependency problems prevent configuration of linux-image-2.6-amd64:
linux-image-2.6-amd64 depends on linux-image-2.6.26-2-amd64; however:
Package linux-image-2.6.26-2-amd64 is not configured yet.
dpkg: error processing linux-image-2.6-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-2.6.26-1-amd64
linux-image-2.6.26-2-amd64
linux-image-2.6-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
5. i now mount /sys:
root@IMAGE / # mount /sys
6. now it mount /sys:
root@IMAGE / # mount /sys
root@IMAGE / # apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up linux-image-2.6.26-1-amd64 (2.6.26-13lenny2) ...
Running depmod.
Running mkinitramfs-kpkg.
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
Setting up linux-image-2.6.26-2-amd64 (2.6.26-15) ...
Running depmod.
Running mkinitramfs-kpkg.
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
Setting up linux-image-2.6-amd64 (2.6.26+17+lenny1) ...
--
afairc, using "mkinitramfs" i get the output that /sys is not mounted so
i suggest that this error is also displayed by mkinitramfs-kpkg.
thank you for taking care of this issue.
cheers,
raoul
-- Package-specific info:
-- /proc/cmdline
root=/dev/md0 ro
-- /proc/filesystems
ext3
-- lsmod
Module Size Used by
sg 36448 0
e100 37648 0
mii 9856 1 e100
e1000e 99748 0
ipv6 288328 22
psmouse 42268 0
i2c_i801 13596 0
serio_raw 9860 0
snd_pcm 81672 0
i2c_core 27936 1 i2c_i801
snd_timer 25744 1 snd_pcm
snd 63688 2 snd_pcm,snd_timer
soundcore 12064 1 snd
snd_page_alloc 13072 1 snd_pcm
pcspkr 7040 0
ehci_hcd 36108 0
iTCO_wdt 15696 0
container 8320 0
button 11680 0
shpchp 34080 0
uhci_hcd 25760 0
pci_hotplug 32056 1 shpchp
evdev 14208 0
dm_mirror 20608 0
dm_log 13956 1 dm_mirror
dm_snapshot 19400 0
dm_mod 58864 3 dm_mirror,dm_log,dm_snapshot
raid456 125984 3
async_xor 8448 1 raid456
async_memcpy 6912 1 raid456
async_tx 11764 3 raid456,async_xor,async_memcpy
xor 9744 2 raid456,async_xor
thermal 22688 0
processor 42304 1 thermal
fan 9352 0
thermal_sys 17728 3 thermal,processor,fan
ahci 33036 13
ext3 125072 3
jbd 51240 1 ext3
mbcache 12804 1 ext3
raid1 24192 1
md_mod 80164 4 raid456,raid1
sd_mod 29376 16
sata_sil 13192 0
ata_piix 22660 0
libata 165472 3 ahci,sata_sil,ata_piix
scsi_mod 160760 3 sg,sd_mod,libata
dock 14112 1 libata
r8169 31492 0
-- /etc/kernel-img.conf
# Kernel Image management overrides
# See kernel-img.conf(5) for details
do_symlinks = No
do_initrd = Yes
-- /etc/initramfs-tools/initramfs.conf
MODULES=dep
BUSYBOX=y
BOOT=local
DEVICE=eth0
NFSROOT=auto
-- /sys/block
md0
md1
md10
md11
md12
md13
md14
md15
md16
md17
md18
md19
md2
md20
md21
md22
md23
md24
md25
md26
md27
md28
md29
md3
md30
md31
md4
md5
md6
md7
md8
md9
ram0
ram1
ram10
ram11
ram12
ram13
ram14
ram15
ram16
ram2
ram3
ram4
ram5
ram6
ram7
ram8
ram9
sda
sdb
sdc
-- System Information:
Debian Release: 5.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages initramfs-tools depends on:
ii cpio 2.9-13 GNU cpio -- a program to
manage ar
ii findutils 4.4.0-2 utilities for finding
files--find,
ii klibc-utils 1.5.12-2 small utilities built with
klibc f
ii module-init-tools 3.4-1 tools for managing Linux
kernel mo
ii udev 0.125-7 /dev/ and hotplug
management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.10.2-2 Tiny utilities for small
and embed
initramfs-tools suggests no packages.
-- no debconf information
Reply to: