--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: /usr/sbin/mkinitramfs: does not support deducing parent block device name from partition device name for LVM on cciss
- From: root <bugreporter@udmvt.ru>
- Date: Wed, 10 Dec 2008 14:02:43 +0400
- Message-id: <20081210100243.14514.17149.reportbug@carbonium.servers.udmvt.ru>
- Reply-to: bugreporter@udmvt.ru
Package: initramfs-tools
Version: 0.92j
Severity: important
File: /usr/sbin/mkinitramfs
Preamble: This bug made the weekly lenny installation to fail.
Root is on lvm on HP cciss controller.
I'am not sure if non-lvm installation will succeed on cciss
partition.
Is it presupposed that block device names are only of type hda1, sda2, <block><partnum> etc?
For lvm on /dev/c0d0p4 i have got this trace from mkinitramfs:
+ '[' raid1-root '!=' /dev/mapper/raid1-root ']'
++ stat --format %T /dev/mapper/raid1-root
+ minor=0
++ ls -1 /sys/block/dm-0/slaves
++ head -n 1
+ block='cciss!c0d0p4'
+ '[' 'cciss!c0d0p4' '!=' 'cciss!c0d0p4' ']'
+ '[' 'cciss!c0d0p4' '!=' 'cciss!c0d0p4' ']'
+ block='cciss!c0d0p'
+ '[' -z 'cciss!c0d0p' ']'
+ '[' '!' -e '/sys/block/cciss!c0d0p' ']'
+ echo 'mkinitramfs: missing cciss!c0d0p root /dev/mapper/raid1-root /sys entry'
mkinitramfs: missing cciss!c0d0p root /dev/mapper/raid1-root /sys entry
+ echo 'mkinitramfs: workaround is MODULES=most'
mkinitramfs: workaround is MODULES=most
+ echo 'mkinitramfs: Error please report the bug'
mkinitramfs: Error please report the bug
+ exit 1
So i am reporting the bug.
Here is snap from hook-functions file, dep_add_modules:
...
if [ "${root#/dev/mapper/}" != "${root}" ]; then
minor=$((0x$(stat --format "%T" ${root}) % 256))
block=$(ls -1 /sys/block/dm-${minor}/slaves | head -n 1)
# lvm on luks or luks on lvm
if [ "${block#dm-}" != "${block}" ]; then
block=$(ls -1 /sys/block/${block}/slaves | head -n 1)
fi
# lvm on md or luks on md
if [ "${block#md}" != "${block}" ]; then
block=$(awk "/^${block}/{print substr(\$5, 1, 4); exit}" \
/proc/mdstat)
fi
block=${block%[0-9]*}
# md root new naming scheme /dev/md/X
elif [ "${root#/dev/md/}" != "${root}" ]; then
...
Maybe there may appear another if/else for lvm-on-cciss naming scheme?
Like this:
if [ "${block#cciss}" != "${block}" ]; then
block="${block%p[0-9]*}"
else
block=${block%[0-9]*}
fi
instead of just
block=${block%[0-9]*}
It worked for me (but still not tried to boot from it, still writing this report).
NOTE: the system info below partially comes from rescue boot, since it was not possible to boot normally.
-- Package-specific info:
-- /proc/cmdline
vga=normal initrd=/install.386/initrd.gz rescue/enable=true -- quiet BOOT_IMAGE=/install.386/vmlinuz
-- /proc/filesystems
iso9660
ext2
ext3
jfs
reiserfs
xfs
vfat
-- lsmod
Module Size Used by
dm_mod 45384 7
raid456 115216 0
async_xor 3456 1 raid456
async_memcpy 2176 1 raid456
async_tx 5960 3 raid456,async_xor,async_memcpy
xor 14728 2 raid456,async_xor
raid1 17664 0
raid0 6272 0
md_mod 65940 3 raid456,raid1,raid0
vfat 8832 0
fat 39964 1 vfat
xfs 446836 0
reiserfs 187008 0
jfs 148060 0
ext3 103432 3
jbd 35092 1 ext3
ext2 52616 1
mbcache 6656 2 ext3,ext2
cciss 51332 5
tg3 83332 0
nls_utf8 1664 1
isofs 27684 1
nls_base 6528 5 vfat,fat,jfs,nls_utf8,isofs
zlib_inflate 13952 1 isofs
rsrc_nonstatic 9344 0
pcmcia_core 31760 1 rsrc_nonstatic
ide_generic 2432 0 [permanent]
usb_storage 75200 0
scsi_mod 129420 2 cciss,usb_storage
vga16fb 11276 2
vgastate 7552 1 vga16fb
fan 4100 0
ide_cd_mod 27524 1
cdrom 30112 1 ide_cd_mod
floppy 47620 0
piix 6404 0 [permanent]
ide_core 94760 3 ide_generic,ide_cd_mod,piix
ehci_hcd 28300 0
uhci_hcd 18320 0
usbcore 117104 4 usb_storage,ehci_hcd,uhci_hcd
thermal 15004 0
processor 27824 1 thermal
thermal_sys 10656 3 fan,thermal,processor
-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto
-- /etc/crypttab
# <target name> <source device> <key file> <options>
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
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
--- /usr/share/initramfs-tools/hook-functions~ 2008-12-10 13:36:37.000000000 +0400
+++ /usr/share/initramfs-tools/hook-functions 2008-12-10 13:36:37.000000000 +0400
@@ -258,7 +258,13 @@
block=$(awk "/^${block}/{print substr(\$5, 1, 4); exit}" \
/proc/mdstat)
fi
- block=${block%[0-9]*}
+ if [ "${block#cciss}" != "${block}" ]; then
+ block="${block%p[0-9]*}"
+ else
+ block=${block%[0-9]*}
+ fi
+
+ #block=${block%[0-9]*}
# md root new naming scheme /dev/md/X
elif [ "${root#/dev/md/}" != "${root}" ]; then
root=${root#/dev/md/}
--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.92m
We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive:
initramfs-tools_0.92m.dsc
to pool/main/i/initramfs-tools/initramfs-tools_0.92m.dsc
initramfs-tools_0.92m.tar.gz
to pool/main/i/initramfs-tools/initramfs-tools_0.92m.tar.gz
initramfs-tools_0.92m_all.deb
to pool/main/i/initramfs-tools/initramfs-tools_0.92m_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 507619@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
maximilian attems <maks@debian.org> (supplier of updated initramfs-tools package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 16 Dec 2008 16:01:44 +0100
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.92m
Distribution: unstable
Urgency: medium
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@debian.org>
Description:
initramfs-tools - tools for generating an initramfs
Closes: 426465 502056 502058 503216 504555 505440 507059 507619
Changes:
initramfs-tools (0.92m) unstable; urgency=medium
.
[ Colin Watson ]
* scripts/functions: Call ipconfig with a one-minute timeout.
* Make debug option write to /dev/.initramfs/initramfs.debug,
so that it can be retrieved after boot.
.
[ Julien Danjou ]
* scripts/functions: Wrong check for udevadm in functions. (closes: #507059)
.
[ maximilian attems ]
* scripts/functions: fix not set break variable. (closes: #502058)
* MODULES=dep fix for ida devices.
* hook-functions: alphebetize net drivers, fix typhoon typo.
* Add atl1e, cxgb, ixgb, ixgbe, mlx4_core, netxen_nic, sfc, tehuti to
net module list. (closes: #503216)
* nuke 0.92k goof clean up.
* postrm: set -e flag.
* Revert "framebuffer: Let udev create fb devices."
* scripts/functions: comment fix path to moved linux-2.6
Documentation.
* init: Don't leak initramfs-tools exported variables.
(closes: #426465, #505440)
.
[ dann frazier ]
* Fix MODULES=dep for cciss devices. (closes: #507619)
.
[ Michal Pokrywka ]
* framebuffer: Add support for uvesafb. (closes: #502056)
.
[ Andres Salomon ]
* fix redboot partition support. (closes: #504555)
Checksums-Sha1:
702a221cda8521293cc4f4a6b7f3ae7dbf293f73 1004 initramfs-tools_0.92m.dsc
beb9f30b6faf92ced331b8b68883c2dd0e344428 68035 initramfs-tools_0.92m.tar.gz
674de477133f0a777c655dda29dfa09475ae3b3e 74958 initramfs-tools_0.92m_all.deb
Checksums-Sha256:
db2603b500bb231840c51a328ce778e1058ff42b8776b85e0e67ab633b5ca099 1004 initramfs-tools_0.92m.dsc
8978327526fc60e5d8ce03fa1abfbc66c57850800cae5b78838018c6c3a85cb4 68035 initramfs-tools_0.92m.tar.gz
319731ec24a4d819985424e4ccd4c047f6c809084982a091baf45712c32c7c67 74958 initramfs-tools_0.92m_all.deb
Files:
38551370f0e1471b0d98e5a6c150d08a 1004 utils optional initramfs-tools_0.92m.dsc
f5abdcdcce11c76d5c56c3480da884b9 68035 utils optional initramfs-tools_0.92m.tar.gz
4194efef739007352dba29ddc51a4abb 74958 utils optional initramfs-tools_0.92m_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAklHxQAACgkQeW7Lc5tEHqhy8ACfVpYJICSK1g8Q5UJlXEzQcOKT
s7QAoKAdT3zEX83hdT06im7Up8+BqtGT
=hhrO
-----END PGP SIGNATURE-----
--- End Message ---