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

Bug#457427: initramfs-tools: Using MODULES=dep fails if the root device contains /



Package: initramfs-tools
Version: 0.91c
Severity: normal


Hi,

I tried creating an initrd using MODULES=dep, but it failed with the
following error:

Using mkinitramfs-kpkg to build the ramdisk.
awk: /^md/0/{print substr($5, 1, 3); exit}
awk:        ^ syntax error
mkinitramfs-kpkg failed to create initrd image.
Failed to create initrd image.

I'm guessing this is because mount lists

/dev/md/0 on / type ext2 (rw,errors=remount-ro)

and obviously awk doesn't like the extra / in the pattern!

Regards,

Stephen

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

-- /proc/filesystems
	ext2
	ext3
	vfat

-- lsmod
Module                  Size  Used by
nls_iso8859_1           4160  0 
nls_cp437               5824  0 
vfat                   12256  0 
fat                    48572  1 vfat
usb_storage            77120  0 
lirc_atiusb            16448  1 
lirc_dev               13588  1 lirc_atiusb
binfmt_misc            11272  1 
rfcomm                 36344  0 
l2cap                  22496  5 rfcomm
bluetooth              50436  4 rfcomm,l2cap
ipx                    26148  0 
p8023                   2144  1 ipx
ac                      5636  0 
battery                12296  0 
speedstep_lib           5220  0 
cpufreq_userspace       4292  0 
cpufreq_stats           5184  0 
cpufreq_powersave       1856  0 
cpufreq_ondemand        8332  0 
freq_table              4544  2 cpufreq_stats,cpufreq_ondemand
cpufreq_conservative     6952  0 
microcode              10924  0 
ip6table_filter         2816  1 
iptable_raw             2464  0 
xt_comment              1888  0 
xt_policy               3552  0 
ipt_ULOG                8772  0 
ipt_TTL                 2368  0 
ipt_ttl                 1920  0 
ipt_TOS                 2272  0 
ipt_tos                 1696  0 
ipt_SAME                2432  0 
ipt_REJECT              4544  4 
ipt_REDIRECT            2112  0 
ipt_recent              9080  11 
ipt_owner               2016  0 
ipt_NETMAP              2112  0 
ipt_MASQUERADE          3712  1 
ipt_LOG                 5984  10 
ipt_iprange             1856  0 
ipt_ECN                 2944  0 
ipt_ecn                 2240  0 
ipt_CLUSTERIP           8132  0 
ipt_ah                  1984  0 
ipt_addrtype            1920  0 
nf_nat_tftp             1920  0 
nf_nat_snmp_basic       9860  0 
nf_nat_sip              4704  0 
nf_nat_pptp             3744  0 
nf_nat_proto_gre        2788  1 nf_nat_pptp
nf_nat_irc              2752  0 
nf_nat_h323             7232  0 
nf_nat_ftp              3328  0 
nf_nat_amanda           2496  0 
ts_kmp                  2144  5 
nf_conntrack_amanda     5024  1 nf_nat_amanda
nf_conntrack_tftp       5076  1 nf_nat_tftp
nf_conntrack_sip        8948  1 nf_nat_sip
nf_conntrack_proto_sctp     8584  0 
nf_conntrack_pptp       6784  1 nf_nat_pptp
nf_conntrack_proto_gre     5824  1 nf_conntrack_pptp
nf_conntrack_netlink    25440  0 
nf_conntrack_netbios_ns     3008  0 
nf_conntrack_irc        6808  1 nf_nat_irc
nf_conntrack_h323      48284  1 nf_nat_h323
nf_conntrack_ftp        8960  1 nf_nat_ftp
xt_tcpmss               2272  0 
xt_pkttype              1952  4 
xt_physdev              2640  0 
xt_NFQUEUE              2048  0 
xt_NFLOG                2144  0 
xt_multiport            3072  6 
xt_MARK                 2304  0 
xt_mark                 1920  0 
xt_mac                  1952  0 
xt_limit                2688  0 
xt_length               1984  0 
xt_helper               2624  0 
xt_hashlimit           10060  0 
ip6_tables             14212  2 ip6table_filter,xt_hashlimit
xt_dccp                 3300  0 
xt_conntrack            2816  0 
xt_CONNMARK             3232  0 
xt_connmark             2368  0 
xt_CLASSIFY             1888  0 
xt_tcpudp               3168  43 
xt_state                2496  14 
iptable_nat             6980  1 
nf_nat                 18668  14 ipt_SAME,ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,nf_nat_tftp,nf_nat_sip,nf_nat_pptp,nf_nat_proto_gre,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,nf_conntrack_netlink,iptable_nat
nf_conntrack_ipv4      17448  16 iptable_nat
nf_conntrack           62056  29 ipt_MASQUERADE,ipt_CLUSTERIP,nf_nat_tftp,nf_nat_snmp_basic,nf_nat_sip,nf_nat_pptp,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,nf_conntrack_amanda,nf_conntrack_tftp,nf_conntrack_sip,nf_conntrack_proto_sctp,nf_conntrack_pptp,nf_conntrack_proto_gre,nf_conntrack_netlink,nf_conntrack_netbios_ns,nf_conntrack_irc,nf_conntrack_h323,nf_conntrack_ftp,xt_helper,xt_conntrack,xt_CONNMARK,xt_connmark,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
iptable_mangle          2816  1 
nfnetlink               5816  4 nf_conntrack_netlink,nf_nat,nf_conntrack_ipv4,nf_conntrack
iptable_filter          3008  1 
ip_tables              13220  4 iptable_raw,iptable_nat,iptable_mangle,iptable_filter
x_tables               14308  44 xt_comment,xt_policy,ipt_ULOG,ipt_TTL,ipt_ttl,ipt_TOS,ipt_tos,ipt_SAME,ipt_REJECT,ipt_REDIRECT,ipt_recent,ipt_owner,ipt_NETMAP,ipt_MASQUERADE,ipt_LOG,ipt_iprange,ipt_ECN,ipt_ecn,ipt_CLUSTERIP,ipt_ah,ipt_addrtype,xt_tcpmss,xt_pkttype,xt_physdev,xt_NFQUEUE,xt_NFLOG,xt_multiport,xt_MARK,xt_mark,xt_mac,xt_limit,xt_length,xt_helper,xt_hashlimit,ip6_tables,xt_dccp,xt_conntrack,xt_CONNMARK,xt_connmark,xt_CLASSIFY,xt_tcpudp,xt_state,iptable_nat,ip_tables
ipv6                  242724  25 nf_conntrack_h323
ext3                  121544  5 
jbd                    55368  1 ext3
aes                    27744  1 
cbc                     4448  1 
blkcipher               6340  1 cbc
dm_crypt               12840  1 
tcp_diag                1792  0 
inet_diag              11912  1 tcp_diag
nvidia               6215920  44 
autofs4                20708  1 
loop                   17092  0 
joydev                  9792  0 
grip                    7104  0 
w83627hf               24436  0 
hwmon_vid               2976  1 w83627hf
dvb_pll                10244  1 
snd_emu10k1_synth       6976  0 
snd_emux_synth         31168  1 snd_emu10k1_synth
cx22702                 5860  1 
snd_seq_virmidi         6816  1 snd_emux_synth
snd_seq_midi_emul       5952  1 snd_emux_synth
cx88_dvb               12772  0 
cx88_vp3054_i2c         3104  1 cx88_dvb
video_buf_dvb           6692  1 cx88_dvb
dvb_core               74536  1 video_buf_dvb
snd_intel8x0           32092  0 
tuner                  60456  0 
snd_usb_audio          75136  0 
snd_emu10k1           124224  7 snd_emu10k1_synth
snd_usb_lib            15552  1 snd_usb_audio
firmware_class          9472  2 microcode,snd_emu10k1
snd_ac97_codec         92388  2 snd_intel8x0,snd_emu10k1
tsdev                   8160  0 
snd_seq_dummy           3812  0 
ac97_bus                2336  1 snd_ac97_codec
snd_pcm_oss            39104  0 
cx8802                 17860  1 cx88_dvb
cx8800                 32168  0 
cx88_alsa              12744  0 
cx88xx                 63812  4 cx88_dvb,cx8802,cx8800,cx88_alsa
emu10k1_gp              3808  0 
snd_mixer_oss          15296  2 snd_pcm_oss
gameport               15112  3 grip,emu10k1_gp
ir_common              34212  1 cx88xx
i2c_algo_bit            5988  2 cx88_vp3054_i2c,cx88xx
tveeprom               15024  1 cx88xx
btcx_risc               4808  4 cx8802,cx8800,cx88_alsa,cx88xx
snd_pcm                72132  9 snd_intel8x0,snd_usb_audio,snd_emu10k1,snd_ac97_codec,snd_pcm_oss,cx88_alsa
video_buf              23588  6 cx88_dvb,video_buf_dvb,cx8802,cx8800,cx88_alsa,cx88xx
snd_util_mem            4608  2 snd_emux_synth,snd_emu10k1
snd_hwdep               8836  3 snd_emux_synth,snd_usb_audio,snd_emu10k1
snd_seq_oss            29440  0 
snd_seq_midi            8192  0 
button                  8336  0 
snd_rawmidi            22656  4 snd_seq_virmidi,snd_emu10k1,snd_usb_lib,snd_seq_midi
snd_seq_midi_event      6976  3 snd_seq_virmidi,snd_seq_oss,snd_seq_midi
snd_seq                46544  9 snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
psmouse                36368  0 
pwc                    81600  0 
snd_timer              21188  3 snd_emu10k1,snd_pcm,snd_seq
snd_seq_device          7852  8 snd_emu10k1_synth,snd_emux_synth,snd_emu10k1,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
compat_ioctl32          1440  2 cx8800,pwc
videodev               26688  3 cx8800,cx88xx,pwc
i2c_i801                9264  0 
v4l2_common            16704  4 tuner,cx8800,cx88xx,videodev
parport_pc             34020  0 
parport                34088  1 parport_pc
v4l1_compat            12612  1 videodev
serio_raw               6724  0 
iTCO_wdt               11172  0 
i2c_core               23264  9 nvidia,dvb_pll,cx22702,cx88_vp3054_i2c,tuner,cx88xx,i2c_algo_bit,tveeprom,i2c_i801
snd                    48388  23 snd_emux_synth,snd_seq_virmidi,snd_intel8x0,snd_usb_audio,snd_emu10k1,snd_ac97_codec,snd_pcm_oss,cx88_alsa,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
intel_agp              23348  1 
agpgart                31624  2 nvidia,intel_agp
soundcore               7584  2 snd
snd_page_alloc         10088  3 snd_intel8x0,snd_emu10k1,snd_pcm
shpchp                 31028  0 
pci_hotplug            28096  1 shpchp
rtc                    12984  0 
pcspkr                  3264  0 
evdev                   9472  5 
ext2                   60104  2 
mbcache                 8320  2 ext3,ext2
dm_mirror              21632  0 
dm_snapshot            16932  0 
dm_mod                 52640  20 dm_crypt,dm_mirror,dm_snapshot
raid1                  22752  2 
raid0                   7968  1 
md_mod                 74420  5 raid1,raid0
ide_generic             1312  0 [permanent]
sg                     32540  0 
osst                   49500  0 
st                     35420  2 
sr_mod                 16420  1 
sd_mod                 27424  10 
ide_disk               16544  2 
ide_cd                 36384  0 
cdrom                  32608  2 sr_mod,ide_cd
generic                 4804  0 [permanent]
piix                    8932  0 [permanent]
ide_core              112484  6 usb_storage,ide_generic,ide_disk,ide_cd,generic,piix
3c59x                  41448  0 
ata_piix               15940  10 
firewire_ohci          16640  0 
mii                     5344  1 3c59x
ata_generic             7588  0 
skge                   38224  0 
aic7xxx               157080  2 
scsi_transport_spi     23168  1 aic7xxx
firewire_core          39072  1 firewire_ohci
crc_itu_t               2208  1 firewire_core
uhci_hcd               23056  0 
libata                113968  2 ata_piix,ata_generic
scsi_mod              136300  9 usb_storage,sg,osst,st,sr_mod,sd_mod,aic7xxx,scsi_transport_spi,libata
ehci_hcd               31372  0 
usbcore               130568  8 usb_storage,lirc_atiusb,snd_usb_audio,snd_usb_lib,pwc,uhci_hcd,ehci_hcd
floppy                 54820  0 
thermal                15580  0 
processor              34696  1 thermal
fan                     5092  0 

-- /etc/kernel-img.conf
do_initrd = yes
postinst_hook = /usr/sbin/update-grub
postrm_hook = /usr/sbin/update-grub
do_bootloader = no

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

-- /etc/crypttab
# <target device> <source device> <key file> <options>
cswap /dev/vg-span/swap /dev/random swap,check=/bin/true


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (300, 'stable'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages initramfs-tools depends on:
ii  cpio                         2.9-6       GNU cpio -- a program to manage ar
ii  klibc-utils                  1.5.7-4     small statically-linked utilities 
ii  module-init-tools            3.3-pre11-4 tools for managing Linux kernel mo
ii  udev                         0.114-2     /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii  busybox                       1:1.1.3-5  Tiny utilities for small and embed

-- no debconf information



Reply to: