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

Bug#382602: Breaks Root-on-RAID when /boot != /root)



Package: initramfs-tools
Version: 0.73c
Severity: important


Upgrading initramfs (when package in testing changed) resulted in
non-booting system.  I managed to fix things by adding a script to
init-premount that activates (mdam -assemble's) the raid5 device
(/dev/md1) that contains my root filessystem.  This probably won't
occur on systems where /boot is on the root filesystem because (AIUI)
the boot raid device is automagically activated.

The reason that the root device isn't activated by mdadm in local-top
is that it is trying to use /etc/mdadm.conf which it doesn't find.
(I don't know if /etc/mdadm/mdadm.conf is what it's trying to use, or
if it is supposed to copy that file to /etc in the initramfs file).

The script I added is (less the <script></script> tags):

<script>
#!/bin/sh

PREREQ="udev"

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

# Assemble root RAID
mknod /dev/md1 b 9 1
mdadm --assemble -m 1 /dev/md1 /dev/hda2 /dev/hdb2 /dev/hdc2
</script>


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

-- /proc/filesystems
	cramfs
	ext3

-- lsmod
Module                  Size  Used by
nfs                   189068  2 
nfsd                  200772  8 
exportfs                5248  1 nfsd
lockd                  54248  3 nfs,nfsd
nfs_acl                 3328  2 nfs,nfsd
sunrpc                133476  5 nfs,nfsd,lockd,nfs_acl
appletalk              31476  20 
ipv6                  218912  18 
tcp_diag                1664  0 
inet_diag              10056  2 tcp_diag
snd_pcm_oss            44128  0 
snd_mixer_oss          15744  2 snd_pcm_oss
ide_generic             1216  0 [permanent]
mousedev               10496  1 
tsdev                   7296  0 
i810_audio             31060  0 
ac97_codec             17100  1 i810_audio
evdev                   8832  0 
shpchp                 39424  0 
pci_hotplug            24308  1 shpchp
snd_intel8x0           29532  1 
sis_agp                 8196  1 
snd_ac97_codec         82848  1 snd_intel8x0
snd_ac97_bus            2112  1 snd_ac97_codec
agpgart                29296  1 sis_agp
snd_mpu401              7328  0 
snd_mpu401_uart         6656  1 snd_mpu401
snd_pcm                74504  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              20420  1 snd_pcm
snd_page_alloc          9864  2 snd_intel8x0,snd_pcm
snd_rawmidi            22496  1 snd_mpu401_uart
snd_seq_device          8332  1 snd_rawmidi
snd                    46400  10 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_mpu401,snd_mpu401_uart,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device
soundcore               8736  3 i810_audio,snd
rtc                    11444  0 
pcspkr                  3012  0 
psmouse                34504  0 
serio_raw               6532  0 
analog                  9888  0 
parport_pc             31728  0 
parport                32008  1 parport_pc
floppy                 55916  0 
gameport               13576  1 analog
ext3                  116872  8 
jbd                    47316  1 ext3
mbcache                 7684  1 ext3
dm_mirror              17460  0 
dm_snapshot            15388  0 
ide_cd                 35680  0 
cdrom                  32240  1 ide_cd
ide_disk               14720  15 
usbhid                 32416  1 
sis5513                12108  0 [permanent]
generic                 4228  0 [permanent]
ide_core              111536  5 ide_generic,ide_cd,ide_disk,sis5513,generic
ehci_hcd               26952  0 
ohci_hcd               17348  0 
usbcore               111136  5 usbhid,ehci_hcd,ohci_hcd
sis900                 20992  0 
mii                     5248  1 sis900
thermal                13064  0 
processor              21760  1 thermal
fan                     4548  0 
raid5                  22272  3 
xor                    13960  1 raid5
raid1                  19520  1 
md_mod                 64596  6 raid5,raid1
dm_mod                 48180  9 dm_mirror,dm_snapshot
sisfb                 205012  1 


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (200, 'testing'), (75, 'unstable'), (10, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.16-2-k7
Locale: LANG=en_CA, LC_CTYPE=en_CA (charmap=ISO-8859-1)

Versions of packages initramfs-tools depends on:
ii  busybox-cvs-static            20040623-1 Standalone rescue shell with tons 
ii  cpio                          2.5-1.3    GNU cpio -- a program to manage ar
ii  klibc-utils                   1.4.11-3   small statically-linked utilities 
ii  module-init-tools             3.2.2-3    tools for managing Linux kernel mo
ii  udev                          0.093-1    /dev/ and hotplug management daemo

-- no debconf information



Reply to: