X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=helper%2Ffebootstrap-supermin-helper.pod;h=6c797cbf46089299651cc03279feda592e272c2d;hb=2e1e2d686ca8f819c202d2ed4e8a5c5758451f26;hp=6a2551bc2c8e28a7256d470658a81e34884f907a;hpb=5b45043e8cc72285f5f7077ae65e0ac98f40ec58;p=febootstrap.git diff --git a/helper/febootstrap-supermin-helper.pod b/helper/febootstrap-supermin-helper.pod index 6a2551b..6c797cb 100644 --- a/helper/febootstrap-supermin-helper.pod +++ b/helper/febootstrap-supermin-helper.pod @@ -7,17 +7,20 @@ febootstrap-supermin-helper - Reconstruct initramfs from supermin appliance. febootstrap-supermin-helper supermin.img hostfiles.txt host_cpu kernel initrd febootstrap-supermin-helper input [...] host_cpu kernel initrd + febootstrap-supermin-helper -f ext2 input [...] host_cpu kernel initrd appliance + + febootstrap-supermin-helper -f checksum input [...] host_cpu + =head1 DESCRIPTION I reconstructs a bootable kernel and initramfs from a supermin appliance. First you should be familiar -with L, L and -L. +with L. =head1 PARAMETERS -Of the four or five required parameters, the first few are I -files, and the last two are I files. +Of the required parameters, the first few are I files, and the +last two or three are I files. C and C are the input files which describe the supermin appliance. (You can also use a directory name @@ -25,20 +28,58 @@ here which is searched for files). C should be the host CPU, eg. C or C. -C and C are the temporary output files that this -script produces. These output files are meant to be used just for -booting the appliance, and should be deleted straight afterwards. +C, C and C are the temporary output files +that this script produces. These output files are meant to be used +just for booting the appliance, and should be deleted straight +afterwards. The extra C parameter is only required when +the format is C. None of these parameters are needed for +the checksum output C<-f checksum>. =head1 OPTIONS =over 4 -=item B<-f cpio> | B<--format cpio> +=item B<-f fmt> + +=item B<--format fmt> + +Select the output format for the appliance. Possible formats are: + +=over 4 + +=item cpio + +A Linux initramfs. This is the default. + +In this case you have to supply names for the C +and C, where the C is the appliance. + +=item ext2 + +An ext2 filesystem. + +In this case you have to supply names for the C, a small +C which is used just to locate the appliance, and the +C (the ext2 filesystem). + +=item checksum + +Output a checksum. + +This prints a checksum which only changes when one of the input files +changes. + +You can use this in order to cache the output of a previous run of +this program: computing the checksum is much quicker than building an +appliance, and you only need to invalidate the cache (and consequently +rebuild the appliance) when the checksum changes. Note that the +host_cpu and the UID of the current user are included in the checksum. + +=back -Select the output format. The default, and only possible output -format, is C (ie. a Linux initramfs). +=item B<-k file> -=item B<-k file> | B<--kmods file> +=item B<--kmods file> If this option is specified, then C should be a list of wildcards matching kernel module names, eg: @@ -56,6 +97,25 @@ If this option is not specified, then every kernel module from the host will be included. This is safer, but can produce rather large appliances which need a lot more memory to boot. +=item B<-u user> + +=item B<--user user> + +=item B<-g group> + +=item B<--group group> + +Run febootstrap-supermin-helper as an alternate user and/or group. +C and C can be specified as either a name, which will +be resolved using the system name service, or a uid/gid. Use of these +options requires root privileges. + +Use of these options is required if running febootstrap-supermin-helper +as root with the effective uid/gid set to non-root. Bash will reset +the effective uid/gid to the real uid/gid when invoked. As +febootstrap-supermin-helper uses bash in parts, this will result in the +creation of an appliance with a mixture of ownerships. + =back =head1 SPEED @@ -78,17 +138,39 @@ list the kernel modules you really need. Minimize the appliance, removing as much extraneous junk as possible. -As well as using L it is worth checking for -anything that is not necessary for your particular application and -removing it by hand. +=back + +=head1 ENVIRONMENT VARIABLES + +=over 4 + +=item FEBOOTSTRAP_KERNEL + +If this environment variable is set, then automatic selection of the +kernel is bypassed and this kernel is used. + +The environment variable should point to a kernel file, +eg. C + +The corresponding module path is guessed from the kernel name, but you +can override that by setting C. + +=item FEBOOTSTRAP_MODULES + +If C and C are both set, then +automatic selection of the kernel is bypassed and the kernel and +module path are set to these values. + +The environment variable should point to a module directory, +eg. C + +This has no effect if C is not set. =back =head1 SEE ALSO -L, -L, -L. +L. =head1 AUTHORS @@ -96,7 +178,7 @@ Richard W.M. Jones =head1 COPYRIGHT -(C) Copyright 2009-2010 Red Hat Inc., +(C) Copyright 2009-2011 Red Hat Inc., L. This program is free software; you can redistribute it and/or modify