From 93b02f502e81bf41b7f77b546e3358521b08cd43 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Thu, 22 Aug 2013 10:52:49 +0200
Subject: [PATCH] dracut-functions.sh: use builtin bash functions rather than
tr
convert uppercase to lowercase using bash syntax
---
dracut-functions.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dracut-functions.sh b/dracut-functions.sh
index 6c7e693..87b9769 100755
--- a/dracut-functions.sh
+++ b/dracut-functions.sh
@@ -332,12 +332,12 @@ expand_persistent_dev() {
;;
UUID=*)
_dev="${_dev#UUID=}"
- _dev="$(tr "[:upper:]" "[:lower:]" <<< "$_dev" )"
+ _dev="${_dev,,}"
_dev="/dev/disk/by-uuid/${_dev}"
;;
PARTUUID=*)
_dev="${_dev#PARTUUID=}"
- _dev="$(tr "[:upper:]" "[:lower:]" <<< "$_dev" )"
+ _dev="${_dev,,}"
_dev="/dev/disk/by-partuuid/${_dev}"
;;
PARTLABEL=*)