]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
sosreport: mkdir /run/initramfs, if it does not exist yet
authorHarald Hoyer <harald@redhat.com>
Sat, 16 Mar 2013 09:34:20 +0000 (10:34 +0100)
committerHarald Hoyer <harald@redhat.com>
Sat, 16 Mar 2013 09:34:20 +0000 (10:34 +0100)
modules.d/99base/sosreport.sh

index 0b4ccdca2db3ebb9c4d6bc4d51bdcf888f01cd01..eb1ba8030dba0ee2de88d440c674aa2cf03c1054 100755 (executable)
@@ -2,6 +2,8 @@
 
 echo 'Generating "/run/initramfs/sosreport.txt"'
 
+[ -d /run/initramfs ] || mkdir -p /run/initramfs
+
 exec >/run/initramfs/sosreport.txt 2>&1
 
 set -x