Bug#304483: mkinitrd does not create "mdadm -A" record for /boot partition on raid1 when initrd.img is built
Package: initrd-tools
Version: 0.1.77
Severity: normal
File: /usr/sbin/mkinitrd
Summary: mkinitrd does not create "mdadm -A" record for /boot partition on
raid1 when initrd.img is built
Debian / sarge / testing
debian:~# uname -a
Linux debian 2.6.8-2-686 #1 Mon Jan 24 03:58:38 EST 2005 i686 GNU/Linux
/boot - raid1
/ - raid5
swap - raid5
When #mkinitrd -o /boot/initrd.img is run, it creates only records for /dev/md2
(/) and /dev/md3 (swap) but not for /dev/md1 (/boot).
# cat /mnt/initrimg/script
mdadm -A /devfs/md/3 -R -u 3232683c:698319a4:67aa8320:ae8fa7c7 /dev/sda3
/dev/sdb3 /dev/sdc3
ROOT=/dev/md2
mdadm -A /devfs/md/2 -R -u 2ed78bfb:aed805bf:7cc7e04b:e56f1342 /dev/sda2
/dev/sdb2 /dev/sdc2
# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/md1 /boot ext3 defaults,errors=remount-ro 0 2
/dev/md2 / ext3 defaults,errors=remount-ro 0 1
/dev/md3 none swap sw 0 0
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
# cat /etc/mkinitrd/mkinitrd.conf
# /etc/mkinitrd/mkinitrd.conf:
# Configuration file for mkinitrd(8). See mkinitrd.conf(5).
#
# This file is meant to be parsed as a shell script.
# What modules to install.
MODULES=most
# The length (in seconds) of the startup delay during which linuxrc may be
# interrupted.
DELAY=0
# If this is set to probe mkinitrd will try to figure out what's needed to
# mount the root file system. This is equivalent to the old PROBE=on setting.
ROOT=probe
# This controls the permission of the resulting initrd image.
UMASK=022
# Command to generate the initrd image.
MKIMAGE='mkcramfs %s %s > /dev/null'
# Set this to yes if you want to use busybox(1).
BUSYBOX=no
# Set this to no if you want to disable /usr/share/initrd-tools/scripts.
PKGSCRIPTS=yes
# This is the value for LD_LIBRARY_PATH when deciding what goes onto the
# image.
INITRD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
# cat /etc/mkinitrd/modules
sata_nv
raid0
raid1
raid5
ext3
Full description of the problem (thread "Raid, fsck, superblock could not be
found") can be found here:
http://groups-beta.google.com/group/linux.debian.user/browse_thread/thread/2798f86acd8a12f4/a2a8f0f6d13386b3#a2a8f0f6d13386b3
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
Reply to: