| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
This works around this Fedora problem:
https://bugzilla.redhat.com/show_bug.cgi?id=733117#c4
|
|
|
|
|
| |
* helper/ext2cpio.c (add_link): Don't leak just-allocated buffer.
Instead, link it into links_head list.
|
|
|
|
|
|
| |
* helper/ext2initrd.c (read_module_deps): Don't leak filename.
(ext2_make_initrd): Don't leak "outfile".
* helper/utils.c (load_file): Don't leak a file pointer.
|
| |
|
|
|
|
|
| |
Yet Another Bug caused by lack of strong typing and nullable types in
this sad excuse for a programming language.
|
| |
|
|
|
|
| |
This updates commit daa0a6218be2cee5284d6961fc05b7e53d368abd.
|
| |
|
| |
|
|
|
|
|
| |
This is a hack. Unclear if this is really needed or what it does, but
it fixes Ubuntu 11.10 builds for me.
|
| |
|
|
|
|
|
|
|
|
| |
If there is no --use-installed option, then it didn't download all the
packages (only the ones not installed). But this failed later when it
tried to unpack the packages that hadn't been downloaded.
Thus download all the packages if !use_installed.
|
|
|
|
|
| |
Use the Debian ph_init handler to get the list of installed
packages.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
use_installed is a global variable (defined in febootstrap_cmdline.mli)
so there's not much point in passing it around to every function that
needs it. This commit removes the optional argument in favour of just
using the global variable in each package handler.
However we still need a place where we can bail if the --use-installed
flag is used for package handlers which don't support this yet.
Thus add a ph_init function is called after the right package handler
has been detected but before it is used. This is a convenient place
to put the --use-installed checking and any other initialization that
is required.
|
|
|
|
|
|
|
|
| |
Delay calling this until after debian_detect() has been called and
we've decided to use the Debian backend. Otherwise this breaks
non-dpkg backends.
This fixes commit b8cea4656e5bf1b9e7bb2274ef968ea42b10e0df.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Since the pactree utility only accepts one package name, we must iterate
through the packages rather than specify them all on the command line.
To avoid errors when febootstrap is run on a system with outdated packages,
use ls and awk on the febootstrap package cache directory rather than using
the host's outdated pacman database.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
| |
downloading and unpacking them.
This also adds --use-installed switch (which for now only works for
Debian).
|
|
|
|
|
| |
This step takes a considerable amount of time (about half of the total
construction time), so separately display a timestamped message for it.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Now we have src/ for febootstrap and helper/ for
febootstrap-supermin-helper.
|
|
|
|
| |
This updates commit 3ac623701e5fe5ce94b22b4f40f72ee0161d5184.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
This updates commit df569d49aa10af5995f771362ddc1400f16486e8.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
https://www.redhat.com/archives/libguestfs/2011-August/msg00025.html
|
| |
|
| |
|
| |
|
|
|
|
| |
This is just code tidy-up.
|
| |
|
| |
|