]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Don't resolve symlink for luks devices. We need non-resolved form.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 11 Mar 2011 11:34:25 +0000 (11:34 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 11 Mar 2011 11:34:25 +0000 (11:34 +0000)
svn-id: @12199

geninitrd

index 294b496d1312073e24c4a28a1e3a74b4f2ee3758..0e36cec74c23917f0e1ed97655643d7cae751fff 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -467,7 +467,7 @@ find_modules_for_devpath() {
                devpath=$(dm_node "$devpath")
        fi
 
-       if [ -L "$devpath" ] && ! is_lvm "$devpath"; then
+       if [ -L "$devpath" ] && ! is_lvm "$devpath" && ! is_luks "$devpath"; then
                # sanitize things like:
                # /dev/block/104:2 -> /dev/cciss/c0d0p2
                devpath=$(readlink -f "$devpath")
This page took 0.04887 seconds and 4 git commands to generate.