[PATCH 1/3] Detect live environment if no args passed to anaconda-cleanup.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux