summaryrefslogtreecommitdiffstats
path: root/helper
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite febootstrap as a general supermin appliance building tool.3.0Richard W.M. Jones2010-12-051-6/+3
| | | | | | | | | | | | | | This complete rewrite of the building tools turns febootstrap into a general purpose, cross-distro, supermin appliance only build tool. There is now only one program 'febootstrap' which is used to build a supermin appliance from a list of packages. Normal appliances are not supported. The tools are incompatible with febootstrap 2.x (use the febootstrap-2.x branch from git to get the old package).
* ext2: Fix "ext2fs_mkdir .. No free space in directory".Richard W.M. Jones2010-11-251-3/+13
| | | | | | | | | We weren't expanding ext2 directories and as a result we could hit a limit when the directory grows larger than one block. Note that this fix only applies for creating subdirectories. For creating files (ie. ext2fs_link) we were already doing the right thing.
* elf-default-arch should exit with an error if it fails.Richard W.M. Jones2010-11-061-0/+1
|
* Fix elf-default-arch for ppc and ppc64.Richard W.M. Jones2010-11-061-0/+2
|
* main should return intRichard W.M. Jones2010-11-061-1/+1
|
* RHEL 5: Don't pass BLOCK_FLAG_READ_ONLY to ext2_block_iterate if not defined.Richard W.M. Jones2010-11-061-2/+12
|
* Add -u and -g options to febootstrap-supermin-helperMatthew Booth2010-10-282-3/+126
| | | | | | | | | | | | | Bash automatically resets euid to uid when it executes. This means that the effective user id of a program at the point it calls febootstrap-supermin-helper will be lost if any part of execution chain involved bash. This in turn can result in: * the generation of an incorrect checksum, which contains the uid. * the generation of supermin files with a mixture of owners The -u and -g options allow the caller to pass in an explicit user and group to run as. febootstrap-supermin-helper will set(u|g)id as appropriate.
* Send usage output to stdout or stderr depending on context.Matthew Booth2010-10-011-4/+5
| | | | | If usage information is displayed because of an error, it should go to stderr. If it is displayed because the -h option was given it should go to stdout.
* Fix elf-default-arch detection to work on secondary archs (RHBZ#634951)Dan HorĂ¡k2010-09-172-4/+7
| | | | | | | Recent state of the elf-default-arch script and the hardcoded i386 arch doesn't allow building on other arches than ix86 or x86_64. See attachment for a fix. Can be easily extended to support additional secondary arches by adding new patterns to the elf-default-arch script
* helper: Ignore editor backup (*~) files.Richard Jones2010-08-271-0/+5
|
* helper: Visit directory entries in order.Richard Jones2010-08-271-9/+31
| | | | | | | | | | | | | | | | | | | | Previously in febootstrap-supermin-helper we would visit the files in supermin.d in arbitrary (ie. readdir) order. This has caused a series of heisenbugs where some implicit dependency between these files has not been honoured. The latest one is that '/etc/localtime' can be added to the appliance before '/etc' has been created (and this operation fails). Instead of continuing to chase these, this commit forces us to visit the files in filename order by sorting them before visiting them. Note that in libguestfs, the current order is sufficient, because the files are called: base.img daemon.img hostfiles
* Add -f checksum mode to allow caching of appliances.Richard Jones2010-08-249-30/+178
|
* Implement ext2 output module.Richard Jones2010-08-248-10/+1352
|
* Remove bogus 'whitelist' parameter from usage.Richard Jones2010-08-241-2/+2
| | | | | | Use the -k whitelist option to get a kernel whitelist. This is a bug in current febootstrap-supermin-helper.
* Add -f ext2 option.Richard Jones2010-08-247-23/+127
| | | | | | This option doesn't work yet. The commit is just for adding the capability to pass the extra kernel/initrd/appliance parameters through 'main.c' and 'appliance.c'.
* Add -f option for selecting the output format.Richard Jones2010-08-242-3/+27
| | | | Only -f cpio is permitted by this commit.
* Refactor cpio code into separate file.Richard Jones2010-08-245-249/+333
| | | | | | | | | We create a 'writer' abstraction and (currently) a single implementation of this which can write cpio files. All cpio-related code is moved out of 'appliance.c' into 'cpio.c'. 'appliance.c' becomes a generic appliance builder. This commit should not change the semantics of the program.
* Change initrd -> appliance.Richard Jones2010-08-243-10/+10
| | | | | | We are going to be writing a general appliance, not necessarily an initrd. In the ext2 appliance case we will _also_ write an initrd, so we shouldn't confuse the two things.
* Refactor febootstrap-supermin-helper code into separate files.Richard Jones2010-08-247-879/+1013
| | | | This is just code movement. There is no change to the code.
* Move febootstrap-supermin-helper into helper/ subdirectory.Richard Jones2010-08-243-0/+1191
This will allow us to split up the monolithic C program into separate files for ease of modification. This patch is just file rearrangement.