SVN: geninitrd/trunk/tests: initramfs_switchroot.sh partitions2

glen glen at pld-linux.org
Mon Apr 16 12:51:58 CEST 2012


Author: glen
Date: Mon Apr 16 12:51:57 2012
New Revision: 12545

Added:
   geninitrd/trunk/tests/partitions2
Modified:
   geninitrd/trunk/tests/initramfs_switchroot.sh
Log:
testcase for lilo dm-0 mount

Modified: geninitrd/trunk/tests/initramfs_switchroot.sh
==============================================================================
--- geninitrd/trunk/tests/initramfs_switchroot.sh	(original)
+++ geninitrd/trunk/tests/initramfs_switchroot.sh	Mon Apr 16 12:51:57 2012
@@ -3,6 +3,7 @@
 
 . ./setup-test.sh
 proc=${proc:-/proc}
+partitions=$proc/partitions
 flags=$-
 
 mount() {
@@ -52,7 +53,7 @@
 					printf("device=/dev/%s;\n", partition);
 				}
 			}
-			' $proc/partitions
+			' $partitions
 		)"
 
 		if [ -z "$device" ]; then
@@ -74,7 +75,7 @@
 #	echo "init=$init"
 }
 
-proc=.
+partitions=./partitions
 ROOTFS=xfs
 
 # We support passing root as hda3 /dev/hda3 0303 0x0303 and 303
@@ -103,8 +104,9 @@
 mount -t xfs -r /dev/sda3 /newroot
 EOF
 
-# We support passing root as hda3 /dev/hda3 0303 0x0303 and 303
-ROOT=0edc
+# lilo for dm-0
+partitions=./partitions2
+ROOT=fe00
 runtest <<'EOF'
-mount -t xfs -r 0edc /newroot
+mount -t xfs -r /dev/dm-0 /newroot
 EOF

Added: geninitrd/trunk/tests/partitions2
==============================================================================
--- (empty file)
+++ geninitrd/trunk/tests/partitions2	Mon Apr 16 12:51:57 2012
@@ -0,0 +1,24 @@
+
+major minor  #blocks  name
+
+   3        0   78150744 hda
+   3        1     216846 hda1
+   3        2   20482875 hda2
+   3        3      72292 hda3
+   3        4          1 hda4
+   3        5     136521 hda5
+   3        6    9775521 hda6
+   3        7   46941898 hda7
+   3        8     522081 hda8
+   3       64   78150744 hdb
+   3       65     128488 hdb1
+   3       66      64260 hdb2
+   3       67   10241437 hdb3
+   3       68          1 hdb4
+   3       69    5116671 hdb5
+   3       70    9775521 hdb6
+   3       71    9775521 hdb7
+   3       72    9775521 hdb8
+   3       73   33270583 hdb9
+ 254        0    5107712 dm-0
+   9        6    9775360 md6


More information about the pld-cvs-commit mailing list