dracut/0004-dracut-functions.sh-get_fs_env-replaced-egrep-with-s.patch
Harald Hoyer 66318bb058 update to latest git
- fixes for convertfs (/usr-move)
2012-02-29 13:24:44 +01:00

26 lines
871 B
Diff

From 07f3e4f1689545bd5817c785ee97a3f668239014 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Sat, 25 Feb 2012 16:07:45 +0100
Subject: [PATCH] dracut-functions.sh: get_fs_env() replaced egrep with shell
---
dracut-functions.sh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dracut-functions.sh b/dracut-functions.sh
index bb0c96f..9e9ee4e 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