[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 1/3] Detect live environment if no args passed to anaconda-cleanup.
- From: David Lehman <dlehman redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH 1/3] Detect live environment if no args passed to anaconda-cleanup.
- Date: Fri, 11 Mar 2011 13:05:01 -0600
---
scripts/anaconda-cleanup | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/scripts/anaconda-cleanup b/scripts/anaconda-cleanup
index 9b228ad..528b530 100755
--- a/scripts/anaconda-cleanup
+++ b/scripts/anaconda-cleanup
@@ -60,6 +60,9 @@ for dev in os.listdir(sys_class_block):
loop = os.listdir("%s/%s/slaves" % (sys_class_block, dev))[0].strip()
storage_config.diskImages[name] = devicelibs.loop.get_backing_file(loop)
+if not image_install:
+ live_install = live_install or os.path.exists("/dev/live")
+
if not image_install and not live_install:
print >> sys.stderr, "not a live install or an image install -- exiting"
sys.exit(1)
--
1.7.3.5
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]