|
|
ab92d3 |
From a1b8660316c7d0a541d9e4139df5c5efe2532365 Mon Sep 17 00:00:00 2001
|
|
|
ab92d3 |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
|
ab92d3 |
Date: Thu, 29 Jul 2021 17:40:26 +0200
|
|
|
ab92d3 |
Subject: [PATCH] dracut-functions: fix botched backport
|
|
|
ab92d3 |
|
|
|
ab92d3 |
Resolves: #1957622
|
|
|
ab92d3 |
---
|
|
|
ab92d3 |
dracut-functions.sh | 2 +-
|
|
|
ab92d3 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
ab92d3 |
|
|
|
ab92d3 |
diff --git a/dracut-functions.sh b/dracut-functions.sh
|
|
|
ab92d3 |
index eb2ce748..d75696fd 100755
|
|
|
ab92d3 |
--- a/dracut-functions.sh
|
|
|
ab92d3 |
+++ b/dracut-functions.sh
|
|
|
ab92d3 |
@@ -208,7 +208,7 @@ get_maj_min() {
|
|
|
ab92d3 |
|
|
|
ab92d3 |
if ! [[ "$_out" ]]; then
|
|
|
ab92d3 |
_majmin="$(stat -L -c '%t:%T' "$1" 2>/dev/null)"
|
|
|
ab92d3 |
- out="$(printf "%s" "$((0x${_majmin%:*})):$((0x${_majmin#*:}))")"
|
|
|
ab92d3 |
+ _out="$(printf "%s" "$((0x${_majmin%:*})):$((0x${_majmin#*:}))")"
|
|
|
ab92d3 |
if [[ $get_maj_min_cache_file ]]; then
|
|
|
ab92d3 |
echo "$1 $_out" >> "$get_maj_min_cache_file"
|
|
|
ab92d3 |
fi
|
|
|
ab92d3 |
|