Commit Graph

206 Commits

Author SHA1 Message Date
Martin Gracik 60740ae505 Minor buildstamp changes 2010-11-23 12:41:30 +01:00
Martin Gracik e12c282820 Remove support for writing disc number in discinfo and treeinfo 2010-11-23 12:37:28 +01:00
Martin Gracik 555dacacc3 Enable at-spi-corba in gconf 2010-11-23 11:15:33 +01:00
Martin Gracik 3413733661 Break up __init__.py into more modules 2010-11-23 11:14:25 +01:00
Martin Gracik 1084413b6b Create and use separate installroot directory
The one provided by pungi may be poluted already,
and we don't want this to be left in the initrd.img.
2010-11-16 13:33:50 +01:00
Martin Gracik d888225dd7 Export chown and chmod functions 2010-11-16 12:25:05 +01:00
Martin Gracik cf8fb74155 Change permissions on shadow file 2010-11-16 09:36:46 +01:00
Martin Gracik 9ec28c1a49 Add chown and chmod functions to sysutils 2010-11-16 09:36:07 +01:00
Martin Gracik 1fd86d4a0c Fix copying of other kernels 2010-11-12 14:24:56 +01:00
Martin Gracik 87ad91c475 Fix cleaning up of modules if we have more kernels 2010-11-12 13:00:05 +01:00
Martin Gracik ac3d16d170 Change the way we make the gconf config 2010-11-11 13:51:04 +01:00
Martin Gracik 9a0dac3277 Add at-spi-corba entry to gconf
Needed for dogtail.
2010-11-11 13:37:36 +01:00
Martin Gracik 98b49cdacd Create a separate pylorax.log file 2010-11-10 18:21:24 +01:00
Martin Gracik e56dbed280 Don't use ConfigParser for .buildstamp
Anaconda is case sensitive when parsing the .buildstamp
and ConfigParser makes all the keys lowercase.
2010-11-09 16:07:44 +01:00
Martin Gracik b1ce740a18 Setup PATH
Add /sbin and /usr/sbin to PATH, because when used with cron,
cron does not include it in PATH.
2010-11-09 09:46:58 +01:00
Martin Gracik e5ef6300c3 Log PATH variable we have 2010-11-09 09:37:49 +01:00
Martin Gracik c7b4ec9df5 Add implantisomd5 execution 2010-11-08 16:50:59 +01:00
Martin Gracik 85c91cf6b2 Skip the src arch
Pungi returns also src packages,
so we can get a src build architecture,
which is not a usable build arch.
2010-11-08 16:09:04 +01:00
Martin Gracik 08a752551a Print out the buildarch right after we get it 2010-11-08 15:59:38 +01:00
Martin Gracik d9f1f30944 Fix the yum download messages 2010-11-08 15:31:18 +01:00
Martin Gracik 6925e4d3b3 Don't use quotes for gconftool arguments 2010-11-08 15:02:58 +01:00
Martin Gracik 27b8b56431 Print a nice yum download output 2010-11-08 15:02:49 +01:00
Martin Gracik a1d0a53aa1 Initrd tree modifications 2010-11-08 13:52:11 +01:00
Martin Gracik d70189dffc Skip broken packages 2010-11-08 13:51:09 +01:00
Martin Gracik 3c7ad7d9ea Write treeinfo and discinfo 2010-11-03 14:11:08 +01:00
Martin Gracik d09c2980ec Save list of installed packages 2010-11-03 13:40:03 +01:00
Martin Gracik be8c2859af Create kernel symlink
Don't copy kernel to isolinx and pxeboot directory.
Create hard link instead.
2010-11-02 14:11:50 +01:00
Martin Gracik 4dcdd835b0 Make initrd hard link
Don't copy initrd to both isolinux anx pxeboot
directory. Create a hard link in isolinux instead.
2010-11-02 14:06:55 +01:00
Martin Gracik 5f6c661d28 Remove also broken symlinks 2010-10-29 14:41:42 +02:00
Martin Gracik 2fc71cc74e Catch template exceptions 2010-10-29 14:41:23 +02:00
Martin Gracik 1a5a636e24 Remove code for creating stage2 image 2010-10-27 11:23:47 +02:00
Martin Gracik d6998bd841 Initrd image updates 2010-10-22 16:02:53 +02:00
Martin Gracik e22457b09a Various initrd updates 2010-10-19 17:35:50 +02:00
Martin Gracik f96f015593 Fix error when removing a symbolic link to a dir 2010-10-12 18:56:08 +02:00
Martin Gracik 45c5ef566c Experimental single initrd image 2010-10-12 18:32:35 +02:00
Martin Gracik 8034dd06bb Minor changes 2010-08-17 14:14:36 +02:00
Martin Gracik 15988fd5b2 Allow specifying a mask when removing package files 2010-08-12 16:27:35 +02:00
Martin Gracik 5036ff6bd8 Add support for removing whole packages
Remove all files from a package if removepkg <pkg>
is specified in install image template.
2010-07-29 19:04:30 +02:00
Martin Gracik f277852f7a Don't run ld_config from within the insttree class 2010-07-29 14:38:38 +02:00
Martin Gracik 86d7b2f804 Added package methods to yum helper class 2010-07-29 14:34:30 +02:00
Martin Gracik aaef55c007 Fix file trees copying
Create the directories in advance to copying files,
not later, becase this caused some destination path
problems, like not appending the filename to the
destination directory, because it didn't exist.
2010-07-14 15:57:19 +02:00
Martin Gracik 01a1f80b79 Add the pedantic option
By default copy file errors are ignored,
when pedantic is set to True, they result in an exception.
2010-05-21 09:40:30 +02:00
Martin Gracik 4db8d27a22 Fixed some incorrect file paths 2010-04-22 13:04:17 +02:00
Martin Gracik 20b1ddd4b2 Changed some pathes to work with new anaconda
In recent anaconda version, some paths were changed
from usr/lib/anaconda-runtime to usr/share/anaconda
so we had to change this paths also in lorax
2010-04-09 13:54:02 +02:00
Martin Gracik 93d3b4e386 Fixed a typo 2010-04-07 09:40:37 +02:00
Martin Gracik 1ab4a60bc7 Added some packages and config files
Also fixed the modules symlink
2010-04-02 14:20:05 +02:00
Martin Gracik 36104bc143 Fix the modules and firmware symlinks
On architectures which have libdir other than lib,
we have to create the lib directory in the initrd
prior to copying modules and firmware
2010-03-31 17:28:29 +02:00
Martin Gracik dfbedd6f0e Changed the path where we copy modules and firmware 2010-03-31 14:34:57 +02:00
Martin Gracik 945714a9fb Accept also repositories specified by file:// 2010-03-31 09:45:50 +02:00
Martin Gracik 3a914eab34 Changed the modules and firmware symlinks 2010-03-31 09:40:38 +02:00
Martin Gracik 6a4d4a4a56 Don't run modlist on module-info
Running modlist is not needed anymore, because the module-info
we create does not contain any modules, that are not scsi or eth,
so modlist does not make any changes to it.
2010-03-30 14:44:19 +02:00
Martin Gracik a8f4de6070 Fix some incorrect variable names 2010-03-30 14:40:06 +02:00
Martin Gracik 32c7ffd2eb Sort modules in module-info by modname, not modtype 2010-03-30 13:59:13 +02:00
Martin Gracik 7dbf40fdad Remove the *map files in modules directory 2010-03-30 13:54:19 +02:00
Martin Gracik 68247d2d77 Removed the print of depmod output
Was there only for debugging
2010-03-30 13:15:23 +02:00
Martin Gracik 0645d2ade3 Fixed the generating of modules.dep
Also added some missing directories to initrd image
2010-03-30 13:08:32 +02:00
Martin Gracik bcea8cdcdd Run the depmod after compressing the modules
Also create the etc/modprobe.d directory in the initrd image
2010-03-26 08:49:58 +01:00
Martin Gracik 68f52749ba Remove old boot.iso if it exists 2010-02-26 11:08:30 +01:00
Martin Gracik 4d3393b152 Remove old install.img if it already exists 2010-02-26 10:51:58 +01:00
Martin Gracik 1b6e55d528 Don't create our own yum cache dir 2010-02-26 10:49:51 +01:00
Martin Gracik 438d73b51a Fix an error when creating the lib directory 2010-02-25 20:43:06 +01:00
Martin Gracik d13f13e92f Make sure we create the usr/lib directory 2010-02-25 20:26:54 +01:00
Martin Gracik 1a3d76fc5b Create the libdir in the initrd tree
Make sure we have the libdir created before we copy
the files to the initrd tree.
2010-02-25 20:05:13 +01:00
Martin Gracik ad726c68ec Fix a bug in SmartCopy when printing an error message 2010-02-25 19:36:20 +01:00
Martin Gracik 18ad481067 Improve the error messages in SmartCopy 2010-02-25 19:14:24 +01:00
Martin Gracik 0accac20a7 Don't use our own yum cache 2010-02-25 18:54:43 +01:00
Martin Gracik a3d550952a Fix the regexp for matching the ld_linux executable.
Remove the double quotes from the resulting match object,
if there is more than one ld_linux file specified.
2010-02-25 18:09:56 +01:00
Martin Gracik 79222bab6c Fix searching for ld_linux executable on 64 bit machines
On some machines we can have more ld_linux executables specified
in /usr/bin/ldd file. This patch fixes how we search for the file.
2010-02-25 17:59:49 +01:00
Martin Gracik 4c34d98661 Changed the regexpt to match kernel files containing "_" 2010-02-25 17:06:28 +01:00
Martin Gracik 6efaa3365c Make sure we always have the images-xen section for x86.
The x86 architecture requires that we have the images-xen section
in .treeinfo even if we have no xen kernel.
2010-02-25 15:17:39 +01:00
Martin Gracik 38b6fce4e5 Make sure we have at least one kernel
If the only kernel we have is a PAE or xen kernel,
make sure we copy it to the isolinux directory, and create the
efi images.
2010-02-25 10:54:02 +01:00
Martin Gracik d8e07aeac0 Check if the anaconda stub file exists before we try to copy it 2010-02-24 20:48:46 +01:00
Martin Gracik 8c147979ce Remove the check if the output directory exists when starting lorax.
Pungi creates the output directory before invoking the buildinstall,
so we don't want to require that the directory does not exist.
2010-02-24 18:22:44 +01:00
Martin Gracik 88969ae0db Don't print the template filename and line number in error messages.
The template filename and line number do not correspond to the filename
and line number of the actual template files, because they are
representing the dynamically rendered template, not the text files
on the disk, so printing it out, when an error occurs, may be misleading.
2010-02-24 09:19:53 +01:00
Martin Gracik a4c638f132 New version 2010-02-23 14:20:05 +01:00
Martin Gracik 492037c54b Fixed filename changes 2010-01-15 13:30:23 +01:00
Martin Gracik 9867c805d0 Added specific code for ppc images 2010-01-14 14:26:55 +01:00
Martin Gracik 7eecf20703 Added the license 2010-01-12 12:45:54 +01:00
Martin Gracik b92113c801 Fixed the hybrid iso creation 2009-12-17 17:53:47 +01:00
Martin Gracik b672d9936e New version
Added support for Mako templates.
Changed the Lorax class to require an yumbase object as a parameter.
Changed a lot of unnecessary system calls to native python code.
Moved most of the file paths into a separate object.
The output and config objects are now singletons.
Also done a lot of code cleanup.
2009-12-15 15:26:01 +01:00
Martin Gracik 2c6d450c58 Added some scrubs in the tree scrubs template 2009-10-21 16:57:27 +02:00
Martin Gracik 054bdbf929 Added some directories to remove to scrubs template file 2009-10-21 14:24:34 +02:00
Martin Gracik 32c635c387 Remove unnecessary code 2009-10-21 13:59:49 +02:00
Martin Gracik b028a210a5 Use a template system for tree scrubbing 2009-10-21 13:56:46 +02:00
Martin Gracik 69c69d0e13 Fix broken links after moving the bin and sbin directories 2009-10-21 12:56:05 +02:00
Martin Gracik 551647a017 Move bin and sbin to usr 2009-10-21 10:11:42 +02:00
Martin Gracik 609a57c491 Added code for alpha images 2009-10-13 13:22:44 +02:00
Martin Gracik 2742bd1897 Fixed the stage2 line in isolinux config for RHEL 2009-10-02 15:48:14 +02:00
Martin Gracik 56de80c38a Added code for creating s390 images 2009-09-30 13:02:40 +02:00
Martin Gracik d58f206122 Added some tree scrubs to the code; 2009-09-29 14:41:39 +02:00
Martin Gracik 272ec190c7 New version
I fixed a lot of bugs with copying files to the initrd, and getting the symlinks.
Also I moved some of the code around, to get a clearer flow.
2009-09-23 12:21:33 +02:00
Martin Gracik 6a6be7ef01 Added an output class, which will be used for output control and
formatting
2009-09-09 15:20:17 +02:00
Martin Gracik 7f28c28e6f Some small fixes 2009-09-09 12:43:00 +02:00
Martin Gracik 44ce6ea3e0 Fixed the including of firmware files in the initrd image 2009-09-08 14:01:27 +02:00
Martin Gracik b0b61b17a0 Corrected the automatic getting of dynamic libraries 2009-09-08 10:11:06 +02:00
Martin Gracik 14f98446ea Added the nolink option to the copy command 2009-09-07 13:06:24 +02:00
Martin Gracik 3a013f56c4 Rewrote the copy function to copy also symlinks targets; 2009-09-04 13:34:04 +02:00
Martin Gracik 0301ace495 Added the GPL license to all files 2009-08-27 09:19:49 +02:00
Martin Gracik 4910deac71 Redirected the error messages output from yum; Improved the links copy
function;
2009-08-26 17:16:46 +02:00
Martin Gracik 1324551367 Added the functionality to create efi images and boot.iso 2009-08-25 18:26:52 +02:00