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