dracut/0008-dracut-functions.sh-use-builtin-bash-functions-rathe.patch
Harald Hoyer fe48c9c4e5 dracut-032-23.git20130904
- fixed curl error with zero size kickstart file
Resolves: rhbz#989133
- fixed systemd-cat failure, when systemd is installed
  but not actually running
Resolves: rhbz#1002021
- do not fail on empty dracut module directories
Resolves: rhbz#1003153
2013-09-04 13:43:12 +02:00

31 lines
1011 B
Diff

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=*)