[lorax 2/3] livemedia-creator: start using /var/tmp instead of /tmp

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

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

---
 src/sbin/livemedia-creator |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
index 3f3e4c2..f04e567 100755
--- a/src/sbin/livemedia-creator
+++ b/src/sbin/livemedia-creator
@@ -554,7 +554,7 @@ if __name__ == '__main__':
     parser.add_argument( "--lorax-templates", default="/usr/share/lorax/",
                          type=os.path.abspath,
                          help="Path to mako templates for lorax" )
-    parser.add_argument( "--tmp", default="/tmp", type=os.path.abspath,
+    parser.add_argument( "--tmp", default="/var/tmp", type=os.path.abspath,
                          help="Top level temporary directory" )
     parser.add_argument( "--resultdir", default=None, dest="result_dir",
                          type=os.path.abspath,
@@ -659,6 +659,8 @@ if __name__ == '__main__':
         log.error("virt-install requires libvirt to be installed.")
         sys.exit(1)
 
+    tempfile.tempdir = opts.tmp
+
     # Make the disk image
     if not opts.disk_image:
         # Parse the kickstart to get the partition sizes
-- 
1.7.7.6

_______________________________________________
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