]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Exact match for partition/major/minor.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 16 Feb 2012 09:58:16 +0000 (09:58 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 16 Feb 2012 09:58:16 +0000 (09:58 +0000)
svn-id: @12475

geninitrd

index a75692a5179fe531f3471ac91918717508cc8877..f9cf4946b8907df89b31e7e76c03f85fe20e39ee 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -792,8 +792,8 @@ initrd_gen_initramfs_switchroot() {
                                if (c ~ "^" dev_pattern "$") partition = c;
                        }
 
-                       $4 ~ partition { maj = $1; min = $2; }
-                       $1 ~ maj && $2 ~ min { partition = $4; }
+                       $4 == partition { maj = $1; min = $2; }
+                       $1 == maj && $2 == min { partition = $4; }
 
                        END {
                                if (maj >= 0 && min >= 0) {
This page took 0.413312 seconds and 4 git commands to generate.