From: Harald Hoyer Date: Sat, 25 Feb 2012 15:07:45 +0000 (+0100) Subject: dracut-functions.sh: get_fs_env() replaced egrep with shell X-Git-Tag: 018~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07f3e4f1689545bd5817c785ee97a3f668239014;p=thirdparty%2Fdracut.git dracut-functions.sh: get_fs_env() replaced egrep with shell --- diff --git a/dracut-functions.sh b/dracut-functions.sh index bb0c96fc9..9e9ee4e56 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -168,7 +168,10 @@ get_fs_env() { [[ $1 ]] || return unset ID_FS_TYPE unset ID_FS_UUID - eval $(udevadm info --query=env --name=$1|egrep 'ID_FS_(TYPE|UUID)=') + eval $(udevadm info --query=env --name=$1 \ + | while read line; do + [[ "$line" =~ 'ID_FS_(TYPE|UUID)=' ]] && echo $line; + done) [[ $ID_FS_TYPE ]] && return if [[ -x /lib/udev/vol_id ]]; then