Blame 0053-sosreport-mkdir-run-initramfs-if-it-does-not-exist-y.patch
|
Harald Hoyer |
8d2be9 |
From e42c7a980ca3852781ee2ddd2b1633e482cf58d0 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
8d2be9 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
8d2be9 |
Date: Sat, 16 Mar 2013 10:34:20 +0100
|
|
Harald Hoyer |
8d2be9 |
Subject: [PATCH] sosreport: mkdir /run/initramfs, if it does not exist yet
|
|
Harald Hoyer |
8d2be9 |
|
|
Harald Hoyer |
8d2be9 |
---
|
|
Harald Hoyer |
8d2be9 |
modules.d/99base/sosreport.sh | 2 ++
|
|
Harald Hoyer |
8d2be9 |
1 file changed, 2 insertions(+)
|
|
Harald Hoyer |
8d2be9 |
|
|
Harald Hoyer |
8d2be9 |
diff --git a/modules.d/99base/sosreport.sh b/modules.d/99base/sosreport.sh
|
|
Harald Hoyer |
8d2be9 |
index 0b4ccdc..eb1ba80 100755
|
|
Harald Hoyer |
8d2be9 |
--- a/modules.d/99base/sosreport.sh
|
|
Harald Hoyer |
8d2be9 |
+++ b/modules.d/99base/sosreport.sh
|
|
Harald Hoyer |
8d2be9 |
@@ -2,6 +2,8 @@
|
|
Harald Hoyer |
8d2be9 |
|
|
Harald Hoyer |
8d2be9 |
echo 'Generating "/run/initramfs/sosreport.txt"'
|
|
Harald Hoyer |
8d2be9 |
|
|
Harald Hoyer |
8d2be9 |
+[ -d /run/initramfs ] || mkdir -p /run/initramfs
|
|
Harald Hoyer |
8d2be9 |
+
|
|
Harald Hoyer |
8d2be9 |
exec >/run/initramfs/sosreport.txt 2>&1
|
|
Harald Hoyer |
8d2be9 |
|
|
Harald Hoyer |
8d2be9 |
set -x
|