Commit Graph

162 Commits

Author SHA1 Message Date
David Cantrell
81e7702393 Introduce class Lorax and class InstRoot.
The lorax driver program will instantiate the Lorax class, which
drives the creation of the install images.  The InstRoot class is
the main object that represents the contents of the instroot
image (the tree that boot and stage2 images are made from).
2008-10-09 17:04:13 -10:00
David Cantrell
77684f0271 Remove extra space in output. 2008-10-05 15:43:09 -10:00
David Cantrell
82649959a4 Add missing close paren. 2008-10-05 15:17:21 -10:00
David Cantrell
230bcee79b Add some more signal output. 2008-10-05 15:08:38 -10:00
David Cantrell
21ff7ce04b Define default datadir location as /usr/share/lorax. 2008-10-05 13:08:10 -10:00
David Cantrell
8c9f73974e anaconda -> lorax 2008-10-04 21:33:03 -10:00
David Cantrell
3ec372e546 Make the cleanup() function just remove the tmpdir location. 2008-10-04 20:59:46 -10:00
David Cantrell
fe8b541620 Make sure the yum.conf file goes to the lorax temp directory. 2008-10-04 20:57:22 -10:00
David Cantrell
eda4c740fa Put all temp files in to the same subdirectory.
Use the system default temp directory (can override with TMPDIR env
var), but make a lorax subdirectory in that directory for all of the
lorax trees.
2008-10-04 20:55:42 -10:00
David Cantrell
9b1a7f2e4f Do not try to close a file descriptor, which is an int. 2008-10-04 20:31:13 -10:00
David Cantrell
fcb8d0f1ab Open the file descriptor returned from mkstemp().
We get a file descriptor as returned by os.open() when calling
tempfile.mkstemp(), so we need to pass that value to os.fdopen()
before we can write text to it (easily, anyway).
2008-10-04 20:29:59 -10:00
David Cantrell
9c3e0a79af Move code in to the src/ subdirectory. 2008-10-04 19:45:34 -10:00