Commit Graph

837 Commits

Author SHA1 Message Date
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
David Cantrell
bc76ca2070 Set buildarch and other fixes.
Set buildarch to the value of pylorax.getBuildArch().
Other minor cleanups.
2008-10-03 15:44:57 -10:00
David Cantrell
7c6562f972 Syntax fixes. 2008-09-12 16:15:10 -10:00
David Cantrell
57c51abe99 /etc/lorax/modules
The list of kernel modules to include in initrd.img.
2008-09-12 16:08:21 -10:00
David Cantrell
f16dd41cca Various support functions from buildinstall.
Creating directories, the yum.conf file, and cleanup.
2008-09-12 16:04:02 -10:00
David Cantrell
aceb9a14ca More program flow brought over from buildinstall.
The main driver program is starting to take shape.  Still a lot
to do, such as recreating upd-instroot and the mk-images mess.
2008-09-12 16:03:20 -10:00
David Cantrell
7b111a604b Added treeinfo.py module to pylorax.
The treeinfo module replaces maketreeinfo.py and currently
provides a single function called write().
2008-09-12 15:05:49 -10:00
David Cantrell
28a51258d8 POLICY explains what I'm doing. 2008-09-12 15:05:30 -10:00
David Cantrell
5033fcc35b Created pylorax.discinfo for writing .discinfo files.
This functionality was previously handled by the makestamp.py
script in anaconda.  Created a module under pylorax with just
one function (for now).  Not sure if it will need to be
extended, but part of the reason for rewriting all of this
code is to make it more extendable.
2008-09-12 14:34:15 -10:00
David Cantrell
a6cf1542df Ignore *.pyc files.
Add *.pyc to .gitignore and remove __init__.pyc.
2008-09-12 12:10:33 -10:00
David Cantrell
ada64599d0 Use /usr/bin/python -tt 2008-09-12 12:04:12 -10:00
David Cantrell
964d226898 Initial code import.
Option parsing in the main driver, nothing else.
2008-09-11 14:21:12 -10:00
David Cantrell
de03ab166c Start of /etc/lorax files.
The existing buildinstall system had all sorts of data that
would be more suited to configuration files stored directly
in the scripts.  The most difficult set to maintain was the
list of packages for install mode and rescue mode.

I have created a set of configuration files divided by
architecture that allow you to specify the packages to be
included in general or for specific platforms.
2008-09-11 14:16:52 -10:00
David Cantrell
7da79b4c20 Initial project description files imported. 2008-09-11 14:16:39 -10:00