Package: dmraid
Version: 1.0.0.rc16-4.1
Severity: critical
Tags: patch
Justification: breaks the whole system

With / on fakeraid device, the boot drops to initramfs shell. A simple fix:

--- /usr/share/initramfs-tools/scripts/local-top/dmraid 2010-12-20
22:10:10.000000000 +0100
+++ /usr/share/initramfs-tools/scripts/local-top/dmraid 2012-06-14
03:47:15.171595455 +0200
@@ -2,7 +2,7 @@

 # local-top script for dmraid.

-PREREQS=""
+PREREQS="udev"
 prereqs()
 {
        echo $PREREQS
@@ -17,7 +17,7 @@
 esac

 # Activate any dmraid arrays that were not identified by udev and vol_id.
-
+/sbin/udevadm settle --timeout=30
 if devices=$(dmraid -r -c); then
        for dev in $devices; do
                dmraid-activate $dev



-- Package-specific info:
--- dmraid -r -vvv output

--- dmraid -s -vv output

--- /proc/partitions:
major minor  #blocks  name

   8        0  488385527 sda
   8        1  155777880 sda1
   8        2     509952 sda2
   8        3          1 sda3
   8        5     102400 sda5
   8        6    3145728 sda6
   8        7   15728640 sda7
   8       80    7821312 sdf
   8       81    7817280 sdf1
   8      128 1953514584 sdi
   8      129 1737494528 sdi1
   8      130  209713152 sdi2
   8      131          1 sdi3
   8      133    6289953 sdi5
   8       96    1992704 sdg
   8       97    1992028 sdg1
   8      144  244198584 sdj
   8      145     204800 sdj1
   8      146  104857600 sdj2
   8      147          1 sdj3
   8      149  139132928 sdj5
   8      160  244198584 sdk
   8      161     204800 sdk1
   8      162  104857600 sdk2
   8      163          1 sdk3
   8      165  139132928 sdk5
  11        0    1048575 sr0
 254        0  244197560 dm-0
 254        1     204800 dm-1
 254        2  104857600 dm-2
 254        3  139132928 dm-3

--- initrd.img-3.4.0-2.dmz.2-liquorix-686:

gzip: /boot/initrd.img-3.4.0-2.dmz.2-liquorix-686: not in gzip format
cpio: premature end of archive

--- /proc/modules:
dm_raid45 60457 0 - Live 0xf5d66000
xor 13600 1 dm_raid45, Live 0xf5d4b000
dm_memcache 3202 1 dm_raid45, Live 0xf5d41000
dm_mirror 11886 1 - Live 0xf5cc4000
dm_region_hash 9526 2 dm_raid45,dm_mirror, Live 0xf5cb6000
dm_log 8087 4 dm_raid45,dm_mirror,dm_region_hash, Live 0xf5cac000
dm_mod 67403 13 dm_raid45,dm_mirror,dm_log, Live 0xf5c55000

--- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.4.0-2.dmz.2-liquorix-686 
root=UUID=62555739-e743-4237-8c16-d413a6255a20 ro quiet splash


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (600, 'unstable'), (600, 'testing'), (500, 'stable-updates'), 
(500, 'proposed-updates'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.4.0-2.dmz.2-liquorix-686 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dmraid depends on:
ii  dmsetup              2:1.02.74-4
ii  libc6                2.13-33
ii  libdmraid1.0.0.rc16  1.0.0.rc16-4.1
ii  libselinux1          2.1.9-5
ii  libsepol1            2.1.4-3
ii  udev                 175-3.1

dmraid recommends no packages.

dmraid suggests no packages.

-- no debconf information
--- /usr/share/initramfs-tools/scripts/local-top/dmraid	2010-12-20 22:10:10.000000000 +0100
+++ /usr/share/initramfs-tools/scripts/local-top/dmraid	2012-06-14 03:47:15.171595455 +0200
@@ -2,7 +2,7 @@
 
 # local-top script for dmraid.
 
-PREREQS=""
+PREREQS="udev"
 prereqs()
 {
 	echo $PREREQS
@@ -17,7 +17,7 @@
 esac
 
 # Activate any dmraid arrays that were not identified by udev and vol_id.
-
+/sbin/udevadm settle --timeout=30
 if devices=$(dmraid -r -c); then
 	for dev in $devices; do
 		dmraid-activate $dev
--- /usr/share/initramfs-tools/scripts/local-top/dmraid	2010-12-20 22:10:10.000000000 +0100
+++ /usr/share/initramfs-tools/scripts/local-top/dmraid	2012-06-14 03:47:15.171595455 +0200
@@ -2,7 +2,7 @@
 
 # local-top script for dmraid.
 
-PREREQS=""
+PREREQS="udev"
 prereqs()
 {
 	echo $PREREQS
@@ -17,7 +17,7 @@
 esac
 
 # Activate any dmraid arrays that were not identified by udev and vol_id.
-
+/sbin/udevadm settle --timeout=30
 if devices=$(dmraid -r -c); then
 	for dev in $devices; do
 		dmraid-activate $dev
--- /usr/share/initramfs-tools/scripts/local-top/dmraid	2010-12-20 22:10:10.000000000 +0100
+++ /usr/share/initramfs-tools/scripts/local-top/dmraid	2012-06-14 03:47:15.171595455 +0200
@@ -2,7 +2,7 @@
 
 # local-top script for dmraid.
 
-PREREQS=""
+PREREQS="udev"
 prereqs()
 {
 	echo $PREREQS
@@ -17,7 +17,7 @@
 esac
 
 # Activate any dmraid arrays that were not identified by udev and vol_id.
-
+/sbin/udevadm settle --timeout=30
 if devices=$(dmraid -r -c); then
 	for dev in $devices; do
 		dmraid-activate $dev

Reply via email to