summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Replace ArchLinux module detection with generic method.Erik Nolte2011-10-141-60/+96
| | | | | | | | | ArchLinux used to keep its kernel in /boot/vmlinuz26 but, with Linux 3.0, now uses /boot/vmlinuz-linux. Instead of just changing the kernel filename and module directory, this change removes the ArchLinux specific code, lets febootstrap find a kernel, and then computes the module directory from the version string extracted from the actual kernel file.
* helper/init: Handle compressed modules transparently.Erik Nolte2011-10-144-20/+66
| | | | | | | | | | | | | | | | | | | | Detect libz and, if present, define HAS_LIBZ and add -lz to Makefile's LIBS variable. Add entry on optional zlib package requirement. Detect both uncompressed and gzipped kernel modules. Some Linux distros (like ArchLinux) use gzipped kernel modules with filenames like ext2.ko.gz. This change modifies the filename pattern from (e.g.) "ext2.ko" to "ext2.ko*". When available, use libz to read the module. The init_module system call requires uncompressed kernel module bytes. On some systems (e.g. ArchLinux) the modules are gzipped on disk. Libz is used to read and uncompress gzipped disk files (*.ko.gz) or transparently read uncompressed modules (*.ko).
* Checkout gnulib if the directory is empty.Erik Nolte2011-10-141-0/+5
|
* helper: Improve error message when run on random files (thanks Alexey Torkhov).Richard W.M. Jones2011-10-061-1/+3
|
* Use ext2fs_close2 API if available to avoid unnecessary fsync.Richard W.M. Jones2011-09-242-1/+10
| | | | | | | | This saves over 5 seconds during the slow path construction of the appliance. The ext2fs_close2 API is present in the e2fsprogs 'next' branch and will be in a later e2fsprogs release (thanks Ted Ts'o).
* febootstrap: Use contents of installed Debian packages instead of ↵Hilko Bengen2011-09-239-22/+96
| | | | | | | downloading and unpacking them. This also adds --use-installed switch (which for now only works for Debian).
* Verbose message when adding kernel modules.Richard W.M. Jones2011-09-231-0/+3
| | | | | This step takes a considerable amount of time (about half of the total construction time), so separately display a timestamped message for it.
* yum-rpm: Add more debugging to the Python code.Richard W.M. Jones2011-09-141-5/+17
|
* Stable OCaml dependencies.Richard Jones2011-09-123-22/+18
| | | | | | This technique copied from libguestfs/resize/Makefile.am and modified so that it works with old ocamldep that used to add spaces at the end of lines.
* docs: Use multiple =item's instead of =item foo|barRichard Jones2011-09-121-3/+13
|
* Version 3.10.3.10Richard W.M. Jones2011-09-011-1/+1
|
* Move febootstrap into src/ subdirectory.Richard W.M. Jones2011-09-0117-90/+112
| | | | | Now we have src/ for febootstrap and helper/ for febootstrap-supermin-helper.
* Fix previous commit for non-Debian case.Richard W.M. Jones2011-09-011-1/+3
| | | | This updates commit 3ac623701e5fe5ce94b22b4f40f72ee0161d5184.
* debian: Include workaround for broken apt-cache depends --recurse.Richard W.M. Jones2011-09-013-1/+43
| | | | | | | | | Ubuntu 10.04 LTS has a broken apt-cache depends --recurse command which does not in fact recurse deeply enough to find all dependencies (this is fixed in Ubuntu 11.04). Include a workaround for this so we can use febootstrap on old Ubuntu versions.
* debian: Use configured aptitude program instead of just "aptitude".Richard W.M. Jones2011-09-011-1/+2
|
* debian: Detect apt-cache in configure.Richard W.M. Jones2011-09-013-2/+5
|
* Version 3.9.3.9Richard W.M. Jones2011-08-261-1/+1
|
* Remove obsolete ELF_DEFAULT_ARCH, DEFAULT_ARCH rules from Makefile.Richard W.M. Jones2011-08-261-4/+0
| | | | This updates commit df569d49aa10af5995f771362ddc1400f16486e8.
* febootstrap: Fix build on platforms where there is no native OCaml compiler.Hilko Bengen2011-08-251-1/+3
|
* febootstrap-supermin-helper: Replace objcopy call for embedding init binaryHilko Bengen2011-08-254-35/+55
| | | | | | | | | | | | objcopy needs "output-target" and "binary-architecture" parameters which makes it necessary to keep a list of known architectures. The bin2s.pl script generates input for the GNU assembler which should produce an object file that is equivalent to that produced by objcopy. I have successfully tested the change on an amd64 Debian/unstable system. RWMJ: Added bin2s.pl to EXTRA_DIST and updated .gitignore.
* febootstrap: Add --save-temps option to save temporary files on exit.Richard W.M. Jones2011-08-196-9/+27
|
* Update copyright notices in manual pages.Richard W.M. Jones2011-08-192-2/+2
|
* Include ext4 module in the initrd.Richard W.M. Jones2011-08-121-1/+2
| | | | | | | | Modern kernels allow you to use the ext4.ko module to support ext2 and ext3 access. On Fedora, this is the default (albeit not as a module, so this code path would not be tested yet).
* Download archives with permissive umask (thanks David Konerding).Richard W.M. Jones2011-08-103-6/+6
| | | | https://www.redhat.com/archives/libguestfs/2011-August/msg00025.html
* Version 3.8.3.8Richard W.M. Jones2011-08-101-1/+1
|
* helper: Allow kernel and modpath to be selected from envvars (RHBZ#671082).Richard W.M. Jones2011-07-225-2/+117
|
* helper: create_kernel_archlinux should return const char *Richard W.M. Jones2011-07-221-2/+2
|
* helper: Move all_files down function.Richard W.M. Jones2011-07-221-2/+1
| | | | This is just code tidy-up.
* debian: Check for gawk.Richard W.M. Jones2011-07-211-0/+5
|
* Version 3.7.3.7Richard W.M. Jones2011-07-151-1/+1
|
* De-duplicate directories with the same name, like "/etc" and "/etc/"Richard W.M. Jones2011-07-151-0/+14
| | | | | | | | | | In Rawhide there are two patches which create /etc/pam.d and /etc/pam.d/ febootstrap was trying to treat these as two separate directories. Add a de-duplication step so that these names are considered the same. We could go further than this patch (eg. removing multiple // characters), but this patch is sufficient to fix Fedora builds.
* debian: Add missing build dependency on gawk.Nikita A Menkovich2011-07-151-1/+1
|
* helper: Fix error message when modules.dep is not found.Richard W.M. Jones2011-06-061-1/+1
|
* Remove trailing whitespace from one line.Richard W.M. Jones2011-06-061-1/+1
|
* febootstrap/helper: Major change to kernel module handling codeHilko Bengen2011-06-061-108/+112
| | | | | | | | | | | | The previous implementation had two problems: (I) Not all needed kernel modules were copied to the initrd. (II) If a kernel module depended on more than one other module, only the first dependency was considered for the load order. Using 2.6.39-1-amd64 (Debian/unstable) ext2.ko was not loaded and therefore the root FS could not be mounted. The use of tsort(1) has been replaced with a set of functions that build a DAG in memory and use that to calculate the list of modules to be copied into the initrd and the order in which to load them.
* febootstrap/helper/init: Add translations for errnoHilko Bengen2011-06-061-1/+18
|
* Version 3.6.3.6Richard W.M. Jones2011-06-011-1/+1
|
* Fix some printf format warnings when -Wall is enabled.Richard W.M. Jones2011-06-011-2/+2
|
* febootstrap/helper/init: Mount /proc if not already present.Hilko Bengen2011-06-011-0/+20
|
* Don't require external insmod.static.Hilko Bengen2011-06-014-54/+42
| | | | | Add module loading functionality into init.c, thus making insmod.static unnecessary.
* febootstrap: Look for insmod.static, mke2fs in /sbinHilko Bengen2011-06-011-3/+5
|
* Force creation of /lib/modules directory.Hilko Bengen2011-06-011-0/+1
| | | | | | | | | After adding a line containing "/lib/modules" to hostfiles solved the immediate problem for me -- febootstrap-supermin-helper finished its run. The attached patch makes sure that febootstrap-supermin-helper always creates this directory.
* Version 3.5.3.5Richard W.M. Jones2011-05-271-1/+1
|
* Check lseek return type against (off_t) -1.Daniel Berrange2011-05-271-1/+1
|
* Increase appliance container to 4 GB.Richard W.M. Jones2011-05-271-3/+3
| | | | | | The overhead is now 66 MB which is unfortunate. However 4 GB should be enough for people who accidentally add kernel modules that are hand-compiled with all the debuginfo information in them.
* helper: Add better error messages if files too big for appliance root.Richard W.M. Jones2011-05-273-15/+26
| | | | | | | | | | | The appliance root was 1GB. However the error message you got if you overran this space was very obscure: febootstrap-supermin-helper: ext2fs_file_write: Could not allocate block in ext2 filesystem This adds the name of the file that is failing, and replaces the error message with something more meaningful.
* helper: When /init fails, print some debugging information.Richard W.M. Jones2011-05-121-0/+74
|
* Force mode +x on insmod.static binary (RHBZ#666880).Richard W.M. Jones2011-05-121-0/+6
|
* helper: Change to root directory before running find command.Richard W.M. Jones2011-04-271-1/+13
|
* helper: Don't fail if objects are created in a symlinked dir (RHBZ#698089).Richard W.M. Jones2011-04-201-0/+14
|