[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#501359: marked as done (initramfs-tools: MODULES=dep does not like Xen virtual block devices)



Your message dated Wed, 09 Jun 2010 16:14:22 +0200
with message-id <87631sths1.fsf@tac.ki.iif.hu>
and subject line Re: Bug#501359: initramfs-tools: MODULES=dep does not like Xen virtual block devices
has caused the Debian Bug report #501359,
regarding initramfs-tools: MODULES=dep does not like Xen virtual block devices
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
501359: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501359
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: initramfs-tools
Version: 0.92j
Severity: normal

Hi,

when trying to build a small initramfs via MODULES=dep:

$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.26-1-xen-686
mkinitramfs: missing xvda root /dev/xvda1 /sys entry
mkinitramfs: workaround is MODULES=most
mkinitramfs: Error please report the bug
update-initramfs: failed for /boot/initrd.img-2.6.26-1-xen-686

So here you are.  This virtual machine has a single virtual partition
(/dev/xvda1) imported, no /dev/xvda.

Thanks,
Feri.

-- Package-specific info:
-- /proc/cmdline
root=/dev/xvda1 ro

-- /proc/filesystems
	ext3

-- lsmod
Module                  Size  Used by
evdev                   8768  0 
pcspkr                  3200  0 
ext3                  106024  1 
jbd                    40212  1 ext3
mbcache                 7876  1 ext3
dm_mirror              15872  0 
dm_log                  9220  1 dm_mirror
dm_snapshot            15108  0 
dm_mod                 46952  3 dm_mirror,dm_log,dm_snapshot

-- /etc/kernel-img.conf
# Kernel Image management overrides
# See kernel-img.conf(5) for details
do_symlinks = No

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-xen-686 (SMP w/1 CPU core)
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-6    /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



--- End Message ---
--- Begin Message ---
tags 501359 - moreinfo
thanks

Michael Prokop <mika@debian.org> writes:

> * Ian Campbell <ijc@hellion.org.uk> [Die Apr 06, 2010 at 04:43:15 +0100]:
>
>> On Tue, 2010-04-06 at 04:23 +0200, maximilian attems wrote:
>>
>>> sorry for late reponse, 0.94 changed a bit the way sysfs is walked.
>>> could you please check against it if MODULES=dep is fixed? 
>>
>> It works for me but I do not recall if I was originally able to
>> reproduce the issue with the "whole device" disk configuration I
>> typically use and I don't have an easy way to construct a "partitions
>> only" configuration at the moment. IIRC Ferenc (the original reporter)
>> was using the partition based scheme so perhaps he can confirm if it
>> works for him now.
>
> Ferenc, any news on that? Would be great if you could
> give initramfs-tools >=0.95.1 a try.

Sorry for the delay.  I stopped using "partitions only" configs myself,
but now took the time to install a test system.  The fresh Lenny install
reproduced the error fine, then I upgraded initramfs-tools (and nothing
else) to version 0.96.1 from Sid, and the error went away.  The
resulting iniramfs even works. :)  It gives an error message:

[    0.212391] Freeing unused kernel memory: 256k freed
Loading, please wait...
mount: mounting none on /dev failed: No such device
Begin: Loading essential drivers ... done.

which probably comes from init trying to mount devtmpfs as

if ! mount -t devtmpfs -o mode=0755 none /dev; then

which the Lenny kernel does not support, so this is OK.  It was a nice
move to make this conditional, otherwise I had had problems testing.

A side note: a couple of lines later devpts is still mounted in "legacy"
mode.  This makes full devpts isolation impossible, which is a problem
if the running system wants to use Linux containers.  I didn't track,
maybe this devpts mount does not survive the initramfs phase, but if it
does, this issue is something to think about (until the devpts default
changes, which won't be soon, and surely not for 2.6.32).
-- 
Thanks,
Feri.


--- End Message ---

Reply to: