[PATCH] Unsetup the payload on the way out of anaconda (#1164577)
David Shea
dshea at redhat.com
Mon Dec 15 20:46:41 UTC 2014
For yum and dnf payloads this does nothing of note. For live, this
unmounts the live image so you can run anaconda again.
---
anaconda | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/anaconda b/anaconda
index 27b82ed..80b39f6 100755
--- a/anaconda
+++ b/anaconda
@@ -81,6 +81,10 @@ def exitHandler(rebootData, storage):
uninhibit_screensaver(anaconda.dbus_session_connection, anaconda.dbus_inhibit_id)
anaconda.dbus_inhibit_id = None
+ # Unsetup the payload, which most usefully unmounts live images
+ if anaconda.payload:
+ anaconda.payload.unsetup()
+
# Clean up the PID file
if pidfile_created:
os.unlink(pidfile_path)
--
2.1.0
More information about the anaconda-patches
mailing list