Since we're leaving the initramfs compressed, this directory won't exist
until the system is shutting down. But everything works as expected if
we create the directory ourselves, before shutdown.
---
pyanaconda/iutil.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index dbc7c3b..2ec3821 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -329,6 +329,7 @@ def dracut_eject(device):
try:
if not os.path.exists(DRACUT_SHUTDOWN_EJECT):
+ mkdirChain(os.path.dirname(DRACUT_SHUTDOWN_EJECT))
f = open(DRACUT_SHUTDOWN_EJECT, "w")
f.write("#!/bin/sh\n")
f.write("# Created by Anaconda\n")
--
1.8.1