Blame 0004-dracut-functions.sh-get_fs_env-replaced-egrep-with-s.patch
|
Harald Hoyer |
66318b |
From 07f3e4f1689545bd5817c785ee97a3f668239014 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
66318b |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
66318b |
Date: Sat, 25 Feb 2012 16:07:45 +0100
|
|
Harald Hoyer |
66318b |
Subject: [PATCH] dracut-functions.sh: get_fs_env() replaced egrep with shell
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
---
|
|
Harald Hoyer |
66318b |
dracut-functions.sh | 5 ++++-
|
|
Harald Hoyer |
66318b |
1 files changed, 4 insertions(+), 1 deletions(-)
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
diff --git a/dracut-functions.sh b/dracut-functions.sh
|
|
Harald Hoyer |
66318b |
index bb0c96f..9e9ee4e 100755
|
|
Harald Hoyer |
66318b |
--- a/dracut-functions.sh
|
|
Harald Hoyer |
66318b |
+++ b/dracut-functions.sh
|
|
Harald Hoyer |
66318b |
@@ -168,7 +168,10 @@ get_fs_env() {
|
|
Harald Hoyer |
66318b |
[[ $1 ]] || return
|
|
Harald Hoyer |
66318b |
unset ID_FS_TYPE
|
|
Harald Hoyer |
66318b |
unset ID_FS_UUID
|
|
Harald Hoyer |
66318b |
- eval $(udevadm info --query=env --name=$1|egrep 'ID_FS_(TYPE|UUID)=')
|
|
Harald Hoyer |
66318b |
+ eval $(udevadm info --query=env --name=$1 \
|
|
Harald Hoyer |
66318b |
+ | while read line; do
|
|
Harald Hoyer |
66318b |
+ [[ "$line" =~ 'ID_FS_(TYPE|UUID)=' ]] && echo $line;
|
|
Harald Hoyer |
66318b |
+ done)
|
|
Harald Hoyer |
66318b |
[[ $ID_FS_TYPE ]] && return
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
if [[ -x /lib/udev/vol_id ]]; then
|