[readonly/geninitrd: 530/1068] - perhaps better messages from lvm on initrd
draenog
draenog at pld-linux.org
Sat Nov 2 19:56:57 CET 2013
commit bab4bc2bf10a141adb4f673f2051130e86aa9611
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Wed Nov 14 00:49:40 2007 +0000
- perhaps better messages from lvm on initrd
svn-id: @9051
geninitrd | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 471deff..10c62f1 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1379,12 +1379,15 @@ initrd_gen_lvm() {
# parse rootdev from kernel commandline
for arg in $CMDLINE; do
if [ "${arg##root=}" != "${arg}" ]; then
- ROOTDEV=${arg##root=}
- echo "Using $ROOTDEV from kernel commandline"
- local tmp=${ROOTDEV#/dev/}
- if [ "$tmp" != "$ROOTDEV" ]; then
- VGVOLUME=${tmp%/*}
- echo "Using $VGVOLUME LVM Volume Group from kernel commandline"
+ local rdev=${arg##root=}
+ if [ "$rdev" != "$ROOTDEV" ]; then
+ ROOTDEV=$rdev
+ echo "LVM: Using 'root=$ROOTDEV' from kernel commandline"
+ local tmp=${ROOTDEV#/dev/}
+ if [ "$tmp" != "$ROOTDEV" ]; then
+ VGVOLUME=${tmp%/*}
+ echo "LVM: Using Volume Group '$VGVOLUME'"
+ fi
fi
fi
done
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090
More information about the pld-cvs-commit
mailing list