Skip to contentSkip to conversation

my changes for today

PATCH In review Harald Hoyer 2 participants 10 messages Jun 18, 2009 – Jun 19, 2009 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

cover my changes for today

Ok, to be more verbose, I am posting the changes I made today to the list.

Harald Hoyer (7):
also resume from "swsuspend" partitions install "basename" for path_id
kill the server after the test_run
use 128M for the test virtual machines instead of 512M add iSCSI testsuite
add DEBUGFAIL to TEST-10-RAID
remove redundant vol_id run from out udev rules

 modules.d/50plymouth-pre0.7/63-luks.rules |    2 -
 modules.d/50plymouth/63-luks.rules        |    1 -
 modules.d/90crypt/63-luks.rules           |    1 -
 modules.d/90lvm/64-lvm.rules              |    2 +-
 modules.d/90mdraid/61-mdadm.rules         |   12 ++
 modules.d/90mdraid/70-mdadm.rules         |   12 --
 modules.d/90mdraid/install                |    2 +-
 modules.d/95nbd/61-nbd.rules              |    6 +
 modules.d/95nbd/install                   |    1 +
 modules.d/95resume/resume-genrules.sh     |   16 ++-
 modules.d/95udev-rules/install            |    4 +-
 test/TEST-10-RAID/test.sh                 |    9 +-
 test/TEST-20-NFS/test.sh                  |    8 +-
 test/TEST-30-ISCSI/Makefile               |   10 ++
 test/TEST-30-ISCSI/Makefile.tbd           |   10 --
 test/TEST-30-ISCSI/client-init            |   13 +++
 test/TEST-30-ISCSI/create-root.sh         |   38 ++++----
 test/TEST-30-ISCSI/dhcpd.conf             |   25 +++++
 test/TEST-30-ISCSI/server-init            |   17 +++
 test/TEST-30-ISCSI/targets                |   21 ++++
 test/TEST-30-ISCSI/test.sh                |  162 ++++++++++++++++++++++++-----
 test/TEST-40-NBD/test.sh                  |   12 ++-
 22 files changed, 296 insertions(+), 88 deletions(-)
 create mode 100644 modules.d/90mdraid/61-mdadm.rules
 delete mode 100644 modules.d/90mdraid/70-mdadm.rules
 create mode 100644 modules.d/95nbd/61-nbd.rules
 create mode 100644 test/TEST-30-ISCSI/Makefile
 delete mode 100644 test/TEST-30-ISCSI/Makefile.tbd
 create mode 100755 test/TEST-30-ISCSI/client-init
 create mode 100644 test/TEST-30-ISCSI/dhcpd.conf
 create mode 100755 test/TEST-30-ISCSI/server-init
 create mode 100644 test/TEST-30-ISCSI/targets

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1245331581-2453-1-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

#2 lore raw

PATCH 1/7 also resume from "swsuspend" partitions

---
 modules.d/95resume/resume-genrules.sh |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
modules.d/95resume/resume-genrules.sh +10 -6
index 5ff4efe..002a304 100755
@@ -1,11 +1,15 @@
 if [ -n "$resume" ]; then
-    (
+    {
     printf "KERNEL==\"%s\", RUN+=\"/bin/sh -c 'echo %%M:%%m > /sys/power/resume'\"\n" \
-		${resume#/dev/}
+		${resume#/dev/};
     printf "SYMLINK==\"%s\", RUN+=\"/bin/sh -c 'echo %%M:%%m > /sys/power/resume'\"\n" \
-		${resume#/dev/}
-    ) >> /etc/udev/rules.d/99-resume.rules
+		${resume#/dev/};
+    } >> /etc/udev/rules.d/99-resume.rules
 elif  ! getarg noresume; then
-    echo "SUBSYSTEM==\"block\", ACTION==\"add\", ENV{ID_FS_TYPE}==\"suspend\", RUN+=\"/bin/sh -c 'echo %M:%m > /sys/power/resume'\"" \
-    >> /etc/udev/rules.d/99-resume.rules
+    {
+    echo "SUBSYSTEM==\"block\", ACTION==\"add\", ENV{ID_FS_TYPE}==\"suspend\"," \
+         " RUN+=\"/bin/sh -c 'echo %M:%m > /sys/power/resume'\"";
+    echo "SUBSYSTEM==\"block\", ACTION==\"add\", ENV{ID_FS_TYPE}==\"swsuspend\"," \
+         " RUN+=\"/bin/sh -c 'echo %M:%m > /sys/power/resume'\"";
+    } >> /etc/udev/rules.d/99-resume.rules
 fi
Signature · 6 lines
1.6.2.2

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

PATCH 2/7 install "basename" for path_id

In reply to a message not in the archive
---
 modules.d/95udev-rules/install |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
modules.d/95udev-rules/install +2 -2
index 4cf488d..c5d73a6 100755
@@ -3,9 +3,9 @@
 # ultimately, /lib/initramfs/rules.d or somesuch which includes links/copies
 # of the rules we want so that we just copy those in would be best
 dracut_install udevd udevadm /lib*/udev/*_id /etc/udev/udev.conf /etc/group
+dracut_install basename
 inst_rules 50-udev-default.rules 60-persistent-storage.rules \
     61-persistent-storage-edd.rules 80-drivers.rules 95-udev-late.rules 
-
 #Some debian udev rules are named differently
 inst_rules 50-udev.rules 95-late.rules
  
@@ -13,4 +13,4 @@ if ldd $(find_binary udevd) |grep -q /lib64/libc; then
     dracut_install /lib64/libnss_files*
 else
     dracut_install /lib/libnss_files*
-fi
\ No newline at end of file
+fi
Signature · 6 lines
1.6.2.2

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw

PATCH 3/7 kill the server after the test_run

In reply to a message not in the archive
---
 test/TEST-20-NFS/test.sh |    4 ++++
 test/TEST-40-NBD/test.sh |    6 ++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
test/TEST-20-NFS/test.sh +4 -0
index 345ba4b..d3787ec 100755
@@ -258,6 +258,10 @@ test_run() {
 
     test_nfsv3 || return 1
     test_nfsv4
+    if [[ -s server.pid ]]; then
+	sudo kill -TERM $(cat server.pid)
+	rm -f server.pid
+    fi
 }
 
 test_setup() {
test/TEST-40-NBD/test.sh +6 -0
index 8d98c08..f3a3d20 100755
@@ -170,6 +170,12 @@ test_run() {
     client_test "NBD root=/dev/dracut/root netroot=dhcp (w/ fstype and opts)" \
 	52:54:00:12:34:05 \
 	"root=/dev/dracut/root netroot=dhcp" || return 1
+
+    if [[ -s server.pid ]]; then
+	sudo kill -TERM $(cat server.pid)
+	rm -f server.pid
+    fi
+
 }
 
 make_encrypted_root() {
Signature · 6 lines
1.6.2.2

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1245331581-2453-4-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

#6 lore raw

Re: [PATCH 3/7] kill the server after the test_run

Quoted 3 lines · Harald Hoyer
---
 test/TEST-20-NFS/test.sh |    4 ++++
 test/TEST-40-NBD/test.sh |    6 ++++++

I wonder why the cleanup function did not kill it for you? It always did for me.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1245379939.28792.6.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org

#8 lore raw

Re: [PATCH 3/7] kill the server after the test_run

Quoted 7 lines · David Dillow
Quoted 3 lines · Harald Hoyer
---
  test/TEST-20-NFS/test.sh |    4 ++++
  test/TEST-40-NBD/test.sh |    6 ++++++

I wonder why the cleanup function did not kill it for you? It always did for me.

well, it helped debugging after several:

$ make run

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw

PATCH 4/7 use 128M for the test virtual machines instead of 512M

In reply to a message not in the archive
---
 test/TEST-10-RAID/test.sh |    4 ++--
 test/TEST-20-NFS/test.sh  |    4 ++--
 test/TEST-40-NBD/test.sh  |    6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
test/TEST-10-RAID/test.sh +2 -2
index a6e81ab..b208760 100755
@@ -4,7 +4,7 @@ TEST_DESCRIPTION="root filesystem on an encrypted LVM PV"
 KVERSION=${KVERSION-$(uname -r)}
 
 test_run() {
-    $testdir/run-qemu -hda root.ext2 -m 512M -nographic \
+    $testdir/run-qemu -hda root.ext2 -m 128M -nographic \
 	-net none -kernel /boot/vmlinuz-$KVERSION \
 	-append "root=/dev/dracut/root rw quiet console=ttyS0,115200n81" \
 	-initrd initramfs.testing
@@ -47,7 +47,7 @@ test_setup() {
 	-f initramfs.makeroot $KVERSION || return 1
     rm -rf overlay
     # Invoke KVM and/or QEMU to actually create the target filesystem.
-    $testdir/run-qemu -hda root.ext2 -m 512M -nographic -net none \
+    $testdir/run-qemu -hda root.ext2 -m 128M -nographic -net none \
 	-kernel "/boot/vmlinuz-$kernel" \
 	-append "root=/dev/dracut/root rw rootfstype=ext2 quiet console=ttyS0,115200n81" \
 	-initrd initramfs.makeroot  || return 1
test/TEST-20-NFS/test.sh +2 -2
index d3787ec..ff11f27 100755
@@ -10,7 +10,7 @@ run_server() {
     # Start server first
     echo "NFS TEST SETUP: Starting DHCP/NFS server"
 
-    $testdir/run-qemu -hda server.ext2 -m 512M -nographic \
+    $testdir/run-qemu -hda server.ext2 -m 128M -nographic \
 	-net nic,macaddr=52:54:00:12:34:56,model=e1000 \
 	-net socket,mcast=230.0.0.1:1234 \
 	-serial udp:127.0.0.1:9999 \
@@ -42,7 +42,7 @@ client_test() {
 	return 1
     fi
 
-    $testdir/run-qemu -hda client.img -m 512M -nographic \
+    $testdir/run-qemu -hda client.img -m 128M -nographic \
   	-net nic,macaddr=$mac,model=e1000 \
   	-net socket,mcast=230.0.0.1:1234 \
   	-kernel /boot/vmlinuz-$KVERSION \
test/TEST-40-NBD/test.sh +3 -3
index f3a3d20..b6d12b6 100755
@@ -11,7 +11,7 @@ run_server() {
     echo "NBD TEST SETUP: Starting DHCP/NBD server"
 
     $testdir/run-qemu -hda server.ext2 -hdb nbd.ext2 -hdc encrypted.ext2 \
-	-m 512M -nographic \
+	-m 128M -nographic \
 	-net nic,macaddr=52:54:00:12:34:56,model=e1000 \
 	-net socket,mcast=230.0.0.1:1234 \
 	-serial udp:127.0.0.1:9999 \
@@ -46,7 +46,7 @@ client_test() {
 	return 1
     fi
 
-    $testdir/run-qemu -hda flag.img -m 512M -nographic \
+    $testdir/run-qemu -hda flag.img -m 128M -nographic \
 	-net nic,macaddr=$mac,model=e1000 \
 	-net socket,mcast=230.0.0.1:1234 \
 	-kernel /boot/vmlinuz-$KVERSION \
@@ -213,7 +213,7 @@ make_encrypted_root() {
     rm -rf overlay
 
     # Invoke KVM and/or QEMU to actually create the target filesystem.
-    $testdir/run-qemu -hda flag.img -hdb encrypted.ext2 -m 512M \
+    $testdir/run-qemu -hda flag.img -hdb encrypted.ext2 -m 128M \
 	-nographic -net none \
 	-kernel "/boot/vmlinuz-$kernel" \
 	-append "root=/dev/dracut/root rw quiet console=ttyS0,115200n81" \
Signature · 6 lines
1.6.2.2

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#10 lore raw

PATCH 5/7 add iSCSI testsuite

In reply to a message not in the archive
---
 test/TEST-30-ISCSI/Makefile       |   10 +++
 test/TEST-30-ISCSI/Makefile.tbd   |   10 ---
 test/TEST-30-ISCSI/client-init    |   13 +++
 test/TEST-30-ISCSI/create-root.sh |   38 +++++-----
 test/TEST-30-ISCSI/dhcpd.conf     |   25 ++++++
 test/TEST-30-ISCSI/server-init    |   17 ++++
 test/TEST-30-ISCSI/targets        |   21 +++++
 test/TEST-30-ISCSI/test.sh        |  162 +++++++++++++++++++++++++++++++------
 8 files changed, 242 insertions(+), 54 deletions(-)
 create mode 100644 test/TEST-30-ISCSI/Makefile
 delete mode 100644 test/TEST-30-ISCSI/Makefile.tbd
 create mode 100755 test/TEST-30-ISCSI/client-init
 create mode 100644 test/TEST-30-ISCSI/dhcpd.conf
 create mode 100755 test/TEST-30-ISCSI/server-init
 create mode 100644 test/TEST-30-ISCSI/targets
test/TEST-30-ISCSI/Makefile new file +10 -0
new file mode 100644
index 0000000..bc0ddb6
@@ -0,0 +1,10 @@
+all:
+	@make -s --no-print-directory -C ../.. all
+	@basedir=../.. testdir=../ ./test.sh --all
+setup:
+	@make --no-print-directory -C ../.. all
+	@basedir=../.. testdir=../ ./test.sh --setup
+clean:
+	@basedir=../.. testdir=../ ./test.sh --clean
+run:
+	@basedir=../.. testdir=../ ./test.sh --run
test/TEST-30-ISCSI/Makefile.tbd deleted +0 -10
deleted file mode 100644
index 2ef573d..0000000
@@ -1,10 +0,0 @@
-all:
-	make -C ../.. all
-	@basedir=../.. testdir=../ ./test.sh --all
-setup:
-	make -C ../.. all
-	@basedir=../.. testdir=../ ./test.sh --setup
-clean:
-	@basedir=../.. testdir=../ ./test.sh --clean
-run:
-	@basedir=../.. testdir=../ ./test.sh --run
test/TEST-30-ISCSI/client-init new file +13 -0
new file mode 100755
index 0000000..b1cfa09
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec >/dev/console 2>&1
+export TERM=linux
+export PS1='initramfs-test:\w\$ '
+stty sane
+echo "made it to the rootfs! Powering down."
+while read dev fs fstype opts rest; do
+    [ "$fstype" != "ext2" ] && continue
+    echo "iscsi-OK $dev $fstype $opts" > /dev/sda
+    break
+done < /proc/mounts
+#sh -i
+poweroff -f
test/TEST-30-ISCSI/create-root.sh +19 -19
index 2dc9a59..32c1828 100755
@@ -6,29 +6,29 @@ done
 udevadm control --reload-rules
 # save a partition at the beginning for future flagging purposes
 sfdisk -C 640 -H 2 -S 32 -L /dev/sda <<EOF
-,1
-,213
-,213
-,213
+,,
 EOF
-mdadm --create /dev/md0 --run --auto=yes --level=5 --raid-devices=3 /dev/sda2 /dev/sda3 /dev/sda4
+#mdadm --create /dev/md0 --run --auto=yes --level=5 --raid-devices=3 /dev/sda2 /dev/sda3 /dev/sda4
 # wait for the array to finish initailizing, otherwise this sometimes fails
 # randomly.
-mdadm -W /dev/md0
-echo -n test >keyfile
-cryptsetup -q luksFormat /dev/md0 /keyfile
-echo "The passphrase is test"
-cryptsetup luksOpen /dev/md0 dracut_crypt_test </keyfile && \
-lvm pvcreate -ff  -y /dev/mapper/dracut_crypt_test && \
-lvm vgcreate dracut /dev/mapper/dracut_crypt_test && \
-lvm lvcreate -l 100%FREE -n root dracut && \
-lvm vgchange -ay && \
-mke2fs /dev/dracut/root && \
+#mdadm -W /dev/md0
+#echo -n test >keyfile
+#cryptsetup -q luksFormat /dev/sda1 /keyfile
+#echo "The passphrase is test"
+#cryptsetup luksOpen /dev/sda1 dracut_crypt_test </keyfile && \
+#lvm pvcreate -ff  -y /dev/mapper/dracut_crypt_test && \
+#lvm vgcreate dracut /dev/mapper/dracut_crypt_test && \
+#lvm pvcreate -ff  -y /dev/sda1 && \
+#lvm vgcreate dracut /dev/sda1 && \
+#lvm lvcreate -l 100%FREE -n root dracut && \
+#lvm vgchange -ay && \
+mke2fs -L ROOT /dev/sda1 && \
 mkdir -p /sysroot && \
-mount /dev/dracut/root /sysroot && \
+mount /dev/sda1 /sysroot && \
 cp -a -t /sysroot /source/* && \
 umount /sysroot && \
-lvm lvchange -a n /dev/dracut/root && \
-cryptsetup luksClose /dev/mapper/dracut_crypt_test && \
-echo "dracut-root-block-created" >/dev/sda1
+echo "dracut-root-block-created" >/dev/sdb
 poweroff -f
+
+#lvm lvchange -a n /dev/dracut/root && \
+#cryptsetup luksClose /dev/mapper/dracut_crypt_test && \
test/TEST-30-ISCSI/dhcpd.conf new file +25 -0
new file mode 100644
index 0000000..515922a
@@ -0,0 +1,25 @@
+ddns-update-style none;
+
+use-host-decl-names true;
+
+subnet 192.168.50.0 netmask 255.255.255.0 {
+	option subnet-mask      255.255.255.0;
+	option routers          192.168.50.1;
+	next-server             192.168.50.1;
+	server-identifier       192.168.50.1;
+	option domain-name-servers 192.168.50.1;
+	option domain-search "example.com";
+	option domain-name "other.com";
+
+	# MAC numbering scheme:
+	# NFSv3: last octect starts at 0x00 and works up
+
+	group {
+		option root-path "iscsiroot=192.168.50.1::::test";
+
+		host iscsi-1 {
+			hardware ethernet 52:54:00:12:34:00;
+			fixed-address 192.168.50.101;
+		}
+	}
+}
test/TEST-30-ISCSI/server-init new file +17 -0
new file mode 100755
index 0000000..69b38ec
@@ -0,0 +1,17 @@
+#!/bin/sh 
+export TERM=linux
+export PS1='nfstest-server:\w\$ '
+stty sane
+echo "made it to the rootfs!"
+echo server > /proc/sys/kernel/hostname
+ip addr add 127.0.0.1/8 dev lo
+ip link set lo up
+ip addr add 192.168.50.1/24 dev eth0
+ip link set eth0 up
+>/var/lib/dhcpd/dhcpd.leases
+chmod 777 /var/lib/dhcpd/dhcpd.leases
+dhcpd -cf /etc/dhcpd.conf -lf /var/lib/dhcpd/dhcpd.leases
+# Wait forever for the VM to die
+/usr/sbin/iscsi-target -D -t iqn.2009-06.dracut
+mount -n -o remount,ro /
+poweroff -f
test/TEST-30-ISCSI/targets new file +21 -0
new file mode 100644
index 0000000..e3c7114
@@ -0,0 +1,21 @@
+# $NetBSD: targets,v 1.2 2006/03/04 21:53:16 agc Exp $
+#
+# Structure of this file:
+#
+# + an extent is a straight (offset, length) pair of a file or device
+#   it's the lowest common storage denominator
+#   at least one is needed
+# + a device is made up of one or more extents or other devices
+#   devices can be added in a hierachical manner, to enhance resilience
+# + in this example, no device definitions are necessary, as the target
+#   will just use a simple extent for persistent storage
+# + a target is made up of 1 or more devices
+# The code does not support RAID1 recovery at present
+
+# Simple file showing 1 extent, mapped straight into 1 target
+
+# extents	file			start	length
+extent0		/dev/sdb	0	20971520
+
+# target	flags	storage		netmask
+target0		rw	extent0		192.168.50.0/24
test/TEST-30-ISCSI/test.sh +137 -25

198 lines not on this page · raw message

Signature · 6 lines
1.6.2.2

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#11 lore raw

PATCH 6/7 add DEBUGFAIL to TEST-10-RAID

In reply to a message not in the archive
---
 test/TEST-10-RAID/test.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
test/TEST-10-RAID/test.sh +4 -1
index b208760..59ae01e 100755
@@ -3,10 +3,13 @@ TEST_DESCRIPTION="root filesystem on an encrypted LVM PV"
 
 KVERSION=${KVERSION-$(uname -r)}
 
+# Uncomment this to debug failures
+#DEBUGFAIL="rdinitdebug rdnetdebug"
+
 test_run() {
     $testdir/run-qemu -hda root.ext2 -m 128M -nographic \
 	-net none -kernel /boot/vmlinuz-$KVERSION \
-	-append "root=/dev/dracut/root rw quiet console=ttyS0,115200n81" \
+	-append "root=/dev/dracut/root rw quiet console=ttyS0,115200n81 $DEBUGFAIL" \
 	-initrd initramfs.testing
     grep -m 1 -q dracut-root-block-success root.ext2 || return 1
 }
Signature · 6 lines
1.6.2.2

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#12 lore raw

PATCH 7/7 remove redundant vol_id run from out udev rules

In reply to a message not in the archive

moved mdadm rules before luks rules
add nbd vol_id rules

---
 modules.d/50plymouth-pre0.7/63-luks.rules |    2 --
 modules.d/50plymouth/63-luks.rules        |    1 -
 modules.d/90crypt/63-luks.rules           |    1 -
 modules.d/90lvm/64-lvm.rules              |    2 +-
 modules.d/90mdraid/61-mdadm.rules         |   12 ++++++++++++
 modules.d/90mdraid/70-mdadm.rules         |   12 ------------
 modules.d/90mdraid/install                |    2 +-
 modules.d/95nbd/61-nbd.rules              |    6 ++++++
 modules.d/95nbd/install                   |    1 +
 9 files changed, 21 insertions(+), 18 deletions(-)
 create mode 100644 modules.d/90mdraid/61-mdadm.rules
 delete mode 100644 modules.d/90mdraid/70-mdadm.rules
 create mode 100644 modules.d/95nbd/61-nbd.rules
modules.d/50plymouth-pre0.7/63-luks.rules +0 -2
index 893577b..711e865 100644
@@ -6,8 +6,6 @@
 
 SUBSYSTEM!="block", GOTO="luks_end"
 ACTION!="add|change", GOTO="luks_end"
-
-KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
 ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="cryptroot-ask $env{DEVNAME} luks-$env{ID_FS_UUID}"
 
 LABEL="luks_end"
modules.d/50plymouth/63-luks.rules +0 -1
index 01a1b1d..cfa619b 100644
@@ -7,7 +7,6 @@
 SUBSYSTEM!="block", GOTO="luks_end"
 ACTION!="add|change", GOTO="luks_end"
 
-KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
 ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="/sbin/cryptroot-ask $env{DEVNAME} luks-$env{ID_FS_UUID}"
 
 LABEL="luks_end"
modules.d/90crypt/63-luks.rules +0 -1
index 01a1b1d..cfa619b 100644
@@ -7,7 +7,6 @@
 SUBSYSTEM!="block", GOTO="luks_end"
 ACTION!="add|change", GOTO="luks_end"
 
-KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
 ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="/sbin/cryptroot-ask $env{DEVNAME} luks-$env{ID_FS_UUID}"
 
 LABEL="luks_end"
modules.d/90lvm/64-lvm.rules +1 -1
index f742287..8a2fcc4 100644
@@ -7,7 +7,7 @@
 SUBSYSTEM!="block", GOTO="lvm_end"
 ACTION!="add|change", GOTO="lvm_end"
 
-KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
+KERNEL=="dm-[0-9]*", IMPORT{program}="vol_id --export $tempnode"
 ENV{ID_FS_TYPE}=="LVM2_member", RUN+="/bin/sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -ay'"
 
 LABEL="lvm_end"
modules.d/90mdraid/61-mdadm.rules new file +12 -0
new file mode 100644
index 0000000..1a5d98c
@@ -0,0 +1,12 @@
+# This file causes block devices with Linux RAID (mdadm) signatures to
+# automatically cause mdadm to be run.
+# See udev(8) for syntax
+
+SUBSYSTEM!="block", GOTO="raid_end"
+ACTION!="add|change", GOTO="raid_end"
+KERNEL=="md/*", GOTO="raid_end"
+
+KERNEL=="md*", IMPORT{program}="vol_id --export $tempnode"
+ENV{ID_FS_TYPE}=="linux_raid_member", RUN+="/sbin/mdadm -IR $root/%k"
+
+LABEL="raid_end"
modules.d/90mdraid/70-mdadm.rules deleted +0 -12
deleted file mode 100644
index ae54c96..0000000
@@ -1,12 +0,0 @@
-# This file causes block devices with Linux RAID (mdadm) signatures to
-# automatically cause mdadm to be run.
-# See udev(8) for syntax
-
-SUBSYSTEM!="block", GOTO="raid_end"
-ACTION!="add|change", GOTO="raid_end"
-KERNEL=="md/*", GOTO="raid_end"
-
-KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
-ENV{ID_FS_TYPE}=="linux_raid_member", RUN+="/sbin/mdadm -IR $root/%k"
-
-LABEL="raid_end"
modules.d/90mdraid/install +1 -1
index 6b729d9..a6fad0d 100755
@@ -3,7 +3,7 @@ dracut_install mdadm
 inst /etc/passwd
 inst /etc/group
 instmods =drivers/md
-inst_rules "$moddir/70-mdadm.rules"
+inst_rules "$moddir/61-mdadm.rules"
 [ -f /etc/mdadm/mdadm.conf ] && inst /etc/mdadm/mdadm.conf /etc/mdadm.conf
 [ -f /etc/mdadm.conf ] && inst /etc/mdadm.conf
 if [ -x  /sbin/mdmon ] ; then
modules.d/95nbd/61-nbd.rules new file +6 -0
new file mode 100644
index 0000000..5892cf3
@@ -0,0 +1,6 @@
+SUBSYSTEM!="block", GOTO="nbd_end"
+ACTION!="add|change", GOTO="nbd_end"
+
+KERNEL=="nbd*", IMPORT{program}="vol_id --export $tempnode"
+
+LABEL="nbd_end"
modules.d/95nbd/install +1 -0
index eca74e4..dace08f 100755
@@ -2,5 +2,6 @@
 
 inst nbd-client
 inst_hook cmdline 90 "$moddir/parse-nbdroot.sh"
+inst_rules "$moddir/61-nbd.rules"
 inst "$moddir/nbdroot" "/sbin/nbdroot"
 instmods nbd
Signature · 6 lines
1.6.2.2

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html