tools/edit-livecd | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
New commits:
commit 8dfdd7d5bbc33135d8cf8e0d8247394b82e729b4
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Tue Jan 14 12:20:51 2014 -0800
Add docleanup to edit-livecd (#1000744)
diff --git a/tools/edit-livecd b/tools/edit-livecd
index 1670228..f1287bf 100755
--- a/tools/edit-livecd
+++ b/tools/edit-livecd
@@ -58,7 +58,7 @@ class LiveImageEditor(LiveImageCreator):
"""
- def __init__(self, name):
+ def __init__(self, name, docleanup=True):
"""Initialize a LiveImageEditor instance.
creates a dummy instance of LiveImageCreator
@@ -125,6 +125,8 @@ class LiveImageEditor(LiveImageCreator):
self.__ImageCreator__selinux_mountpoint = fields[4]
break
+ self.docleanup = docleanup
+
# properties
def __get_image(self):
if self._LoopImageCreator__imagedir is None:
@@ -611,6 +613,9 @@ def parse_options(args):
parser.add_option("", "--skip-minimize",
action="store_true",
dest="skip_minimize", default=False,
help="Specify no osmin.img minimal snapshot.")
+ parser.add_option("", "--nocleanup",
action="store_true",
+ dest="nocleanup", default=False,
+ help="Skip cleanup of temporary files")
setup_logging(parser)
@@ -673,7 +678,7 @@ def main():
if output == '/dev':
output = options.tmpdir
- editor = LiveImageEditor(name)
+ editor = LiveImageEditor(name, docleanup=not options.nocleanup)
editor._exclude = options.exclude
editor._exclude_file = options.exclude_file
editor._include = options.include
Show replies by date