-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid mktemp collisions with [find -not -path '*.ko*']
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
SPECS/dracut/avoid-mktemp-collisions-with-find-not-path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 192a4908594d0080072dd4aaf3417a926003083b Mon Sep 17 00:00:00 2001 | ||
From: Brian Fjeldstad <[email protected]> | ||
Date: Tue, 4 Feb 2025 21:48:52 +0000 | ||
Subject: [PATCH] avoid mktemp collisions with [find -not -path '*.ko*'] | ||
|
||
--- | ||
dracut.sh | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/dracut.sh b/dracut.sh | ||
index cc6d6f28..06e7ce8e 100755 | ||
--- a/dracut.sh | ||
+++ b/dracut.sh | ||
@@ -1253,9 +1253,9 @@ if findmnt --raw -n --target "$tmpdir" --output=options | grep -q noexec; then | ||
fi | ||
|
||
# shellcheck disable=SC2155 | ||
-readonly DRACUT_TMPDIR="$(mktemp -p "$TMPDIR/" -d -t dracut.XXXXXX)" | ||
+readonly DRACUT_TMPDIR="$(mktemp -p "$TMPDIR/" -d -t dracut.dXXXXXX)" | ||
[ -d "$DRACUT_TMPDIR" ] || { | ||
- printf "%s\n" "dracut[F]: mktemp -p '$TMPDIR/' -d -t dracut.XXXXXX failed." >&2 | ||
+ printf "%s\n" "dracut[F]: mktemp -p '$TMPDIR/' -d -t dracut.dXXXXXX failed." >&2 | ||
exit 1 | ||
} | ||
|
||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters