SVN: geninitrd/trunk/functions
glen
glen at pld-linux.org
Wed Apr 2 13:53:10 CEST 2008
Author: glen
Date: Wed Apr 2 13:53:10 2008
New Revision: 9690
Modified:
geninitrd/trunk/functions
Log:
- Look up one device that matches the search parameter with blkid
Modified: geninitrd/trunk/functions
==============================================================================
--- geninitrd/trunk/functions (original)
+++ geninitrd/trunk/functions Wed Apr 2 13:53:10 2008
@@ -34,7 +34,7 @@
fi
local label=${rootdev#"LABEL="}
- local dev=$(/sbin/blkid -t LABEL="$label" -o device)
+ local dev=$(/sbin/blkid -l -t LABEL="$label" -o device)
if [ "$dev" ]; then
if [ ! -r "$dev" ]; then
echo >&2 "$function: blkid returned device $dev which doesn't exist"
@@ -51,7 +51,7 @@
fi
local uuid=${rootdev#"UUID="}
- local dev=$(/sbin/blkid -t UUID="$uuid" -o device)
+ local dev=$(/sbin/blkid -l -t UUID="$uuid" -o device)
if [ "$dev" ]; then
if [ ! -r "$dev" ]; then
More information about the pld-cvs-commit
mailing list