Commit Graph

1913 Commits

Author SHA1 Message Date
David Cantrell
12c5ceea6b Updated to do list. 2008-10-06 09:52:09 -10:00
David Cantrell
7e62446b3e Added draft on initial announce email as I keep adding to it. 2008-10-06 09:51:01 -10:00
David Cantrell
77684f0271 Remove extra space in output. 2008-10-05 15:43:09 -10:00
David Cantrell
e666948409 Pass libdir scrubInstRoot(). 2008-10-05 15:42:26 -10:00
David Cantrell
3c1d9ebf37 ignore_error -> ignore_errors 2008-10-05 15:34:27 -10:00
David Cantrell
82649959a4 Add missing close paren. 2008-10-05 15:17:21 -10:00
David Cantrell
6883d1114f import shutil 2008-10-05 15:10:41 -10:00
David Cantrell
230bcee79b Add some more signal output. 2008-10-05 15:08:38 -10:00
David Cantrell
fe9f08b13f Add dogtail and selinux config files to /usr/share/lorax. 2008-10-05 14:33:27 -10:00
David Cantrell
90e58c56ab Started the scrubInstRoot() function in instroot.py.
The scrubInstRoot() function will do a large part of the work
previously done by upd-instroot.
2008-10-05 14:32:41 -10:00
David Cantrell
21ff7ce04b Define default datadir location as /usr/share/lorax. 2008-10-05 13:08:10 -10:00
David Cantrell
5ef8b9eafb Add some banner messages explaining the major steps of lorax. 2008-10-04 21:53:13 -10:00
David Cantrell
57c97b576c Do prep work before letting yum lay down packages.
Create some directories and symlinks like upd-instroot does before
calling yum.
2008-10-04 21:48:18 -10:00
David Cantrell
e39a759cf1 Return True after yummain runs.
Capture the errcode returned, but don't do anything for now.  It's
probably likely that yummain will always fail according to it
because our instroot won't have everything in place that scriplets
need to run.  But scriptlets are supposed to always exit with
success, so I dunno.
2008-10-04 21:38:20 -10:00
David Cantrell
6bac20bb66 Make cleanup optional. 2008-10-04 21:35:03 -10:00
David Cantrell
8c9f73974e anaconda -> lorax 2008-10-04 21:33:03 -10:00
David Cantrell
508e074126 Do not automatically pass '-v' to yummain. 2008-10-04 21:31:41 -10:00
David Cantrell
d13c27c6f2 Updated to do list. 2008-10-04 21:31:36 -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
e6aebb1c3d sort() is an inplace operation on lists, correct other errors in instroot.py.
sort() is inplace for lists, so it doesn't return the sorted list.
Make sure to strip each line read from the packages* files.  In the
installPackages() function, concat the packages list on to the
arglist because that's what yummain is expecting.
2008-10-04 20:52:17 -10:00
David Cantrell
725305dd9c Correct typo and use os.path.join() in instroot.py.
It's packages_files, not packages_file.
2008-10-04 20:34:37 -10:00
David Cantrell
1ad8929ba8 'import os' in instroot.py. 2008-10-04 20:32:03 -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
649e87ae5f Use correct parameter initializers in installPackages()
Init named parameters to None rather than other variables (copy and
paste gets me again).
2008-10-04 20:22:12 -10:00
David Cantrell
6c6a55154a Fix /usr/share/lorax installation. 2008-10-04 20:15:56 -10:00
David Cantrell
c158df0024 Make sure /etc and /usr/share files go to the right place. 2008-10-04 20:14:31 -10:00
David Cantrell
c8e52cbf27 Use os.path.join() rather than explicitly listing full paths. 2008-10-04 20:09:46 -10:00
David Cantrell
f1375c5ea8 Fix more problems in setup.py. 2008-10-04 20:09:04 -10:00
David Cantrell
46052c010d Build the list of data_files more correctly in setup.py.
Build individual file lists for each subdirectory in etc/
2008-10-04 20:05:53 -10:00
David Cantrell
c01846d9ae lorax.py -> lorax 2008-10-04 19:53:33 -10:00
David Cantrell
5623014506 Write Makefile and correct problems in setup.py. 2008-10-04 19:51:17 -10:00
David Cantrell
e85f18bb5b Rename lorax.py to lorax. 2008-10-04 19:50:56 -10:00
David Cantrell
f1ba230378 Added setup.py, a distutils-based install script. 2008-10-04 19:46:04 -10:00
David Cantrell
9c3e0a79af Move code in to the src/ subdirectory. 2008-10-04 19:45:34 -10:00
David Cantrell
f088290515 Start populating the share directory.
Static content that we copy in to the initrd.img and install.img
will live in /usr/share/lorax.  It can be maintained/modified
more easily that way.
2008-10-04 19:43:27 -10:00
David Cantrell
19c413933c Remove more of buildinstall that has been rewritten. 2008-10-04 19:07:32 -10:00
David Cantrell
53b0a794ba Add -c option to allow user to specify confdir.
Default to /etc/lorax, but let the -c or --confdir= option override
that.
2008-10-04 19:06:21 -10:00
David Cantrell
2aef98cb23 Giant directory of the old scripts.
Placed here for reference as to what remains to be done.

The orig/ subdir is the unmodified tools from anaconda.  The scratch/
subdir is a merge of orig in to a working area.  I delete blocks of
code from there as I rewrite them.
2008-10-04 18:52:23 -10:00
David Cantrell
bbf732c9e1 I have a to do list.
All projects need neverending to do lists.
2008-10-04 18:49:04 -10:00
David Cantrell
45d93040e7 Call pylorax.instroot.createInstRoot()
The instroot module provides the old upd-instroot functionality.
2008-10-04 18:45:55 -10:00
David Cantrell
49a2614bd6 The instroot.py module is a rewrite of upd-instroot. 2008-10-04 18:44:49 -10:00
David Cantrell
74e6855d10 Import yum, rpmUtils, and instroot. Add conf[] hash table. 2008-10-04 18:44:28 -10:00
David Cantrell
8ed3d43ca0 Forgot to delete etc/packages.ppc64 2008-10-04 17:57:12 -10:00
David Cantrell
3d9418a652 Created arch subdirs in /etc/lorax.
Rather than have packages.ARCH and modules.ARCH files, use arch
subdirectories in /etc/lorax.  Better organization.
2008-10-04 17:55:38 -10:00
David Cantrell
3ccd97bfb9 Merge etc/rescue* contents in to appropriate etc/packages* files.
After reading upd-instroot [again], I see that we just merge the
PACKAGES and PACKAGESRESCUE lists together at the end since it's
all the same image now.
2008-10-04 17:52:41 -10:00
David Cantrell
c272dcc076 Write getBuildArch() function and correct mkstemp calls.
Add the getBuildArch() function which does what this was doing in
buildinstall:

    repoquery -c CONF --qf "%{ARCH}\n" anaconda

Also fixed the mkstemp() usage.
2008-10-03 15:46:01 -10:00
David Cantrell
2bc22432f1 Update the POLICY file. 2008-10-03 15:45:33 -10:00