summaryrefslogtreecommitdiffstats
path: root/helper/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Add -u and -g options to febootstrap-supermin-helperMatthew Booth2010-10-281-3/+113
| | | | | | | | | | | | | 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.
* Add -f checksum mode to allow caching of appliances.Richard Jones2010-08-241-13/+21
|
* Implement ext2 output module.Richard Jones2010-08-241-2/+2
|
* 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-241-10/+33
| | | | | | 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-241-3/+22
| | | | Only -f cpio is permitted by this commit.
* Refactor cpio code into separate file.Richard Jones2010-08-241-1/+2
| | | | | | | | | 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-241-5/+5
| | | | | | 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-241-878/+3
| | | | This is just code movement. There is no change to the code.
* Move febootstrap-supermin-helper into helper/ subdirectory.Richard Jones2010-08-241-0/+1036
This will allow us to split up the monolithic C program into separate files for ease of modification. This patch is just file rearrangement.