SVN: geninitrd/trunk/functions
hawk
hawk at pld-linux.org
Mon Jul 16 14:31:53 CEST 2007
Author: hawk
Date: Mon Jul 16 14:31:52 2007
New Revision: 8678
Modified:
geninitrd/trunk/functions
Log:
- check /dev/mapper/* too while testing if rootdev is LVM
Modified: geninitrd/trunk/functions
==============================================================================
--- geninitrd/trunk/functions (original)
+++ geninitrd/trunk/functions Mon Jul 16 14:31:52 2007
@@ -53,15 +53,14 @@
rootdev=$dev
fi
;;
- esac
-
- if [[ "$rootdev" = /dev/dm-* ]]; then
+ /dev/dm-* | /dev/mapper/*)
local node
node=$(dm_lvm2_name "$rootdev") || exit
if [ "$node" ]; then
rootdev="$node"
fi
- fi
+ ;;
+ esac
if [ ! -r "$rootdev" ]; then
echo >&2 "$function: can't find real device for $rootdev"
More information about the pld-cvs-commit
mailing list