summaryrefslogtreecommitdiffstats
path: root/appliance
Commit message (Collapse)AuthorAgeFilesLines
* enable scrub on DebianGuido Günther2010-02-221-1/+1
|
* Another unreadable file: /var/log/yum.logRichard Jones2010-01-291-0/+1
|
* supermin: Add special case for libgcc_s-*.so.NRichard Jones2010-01-281-0/+4
| | | | | | Because this file contains the GCC version and a date, it frequently changes on the host. Create a special case so that this file is matched using a wildcard for the version/date part of the name.
* supermin: Prevent multilib corruption (RHBZ#558593).Richard Jones2010-01-271-8/+36
| | | | | | | | | | | | | | | | | | | On some combination of installing, upgrading and removing the base libguestfs package on x86_64, multilib can corrupt libguestfs by leaving a copy of /usr/bin/libguestfs-supermin-helper around which references the wrong architecture (usually, contains links to the i386-based appliance, when the x86_64 appliance should be constructed). This commit changes libguestfs-supermin-helper so that the script is the same on all architectures. Instead, the library passes the differences to the script (eg. $host_cpu). Because the i386 and x86_64 libraries should be at different locations (/usr/lib vs /usr/lib64) this should prevent multilib from screwing things up. Related links: https://bugzilla.redhat.com/show_bug.cgi?id=558593 http://rwmj.wordpress.com/2009/11/16/please-someone-shoot-multilib/#content https://bugzilla.redhat.com/show_bug.cgi?id=235752
* supermin: Ignore more unreadable files found on RHEL 6.Richard Jones2010-01-251-0/+17
|
* Missing crc kernel module on RHEL 6 / Linux 2.6.32 (fixes RHBZ#557195)Richard Jones2010-01-211-2/+3
|
* appliance: Special case handling for libbfd in the supermin appliance.Richard Jones2009-12-161-0/+4
| | | | | | | | | | | The libbfd library has a constantly changing, non-standard and very long name, eg: /usr/lib64/libbfd-2.20.51.0.2-7.fc13.so Just add a special case to deal with this. This fixes the guestfs_strings command, which relies on the external strings binary which uses this library.
* appliance: Ignore unreadable dbus helper programs.Richard Jones2009-12-161-0/+2
|
* appliance: Fix code which gets list of kernels.Matthew Booth2009-12-071-1/+4
| | | | | The first 'ls' command was failing, so the second 'ls' command would never run at all.
* supermin: Die with an error if no kernels found (RHBZ#539746).Richard Jones2009-11-251-1/+7
| | | | | Updated with a suggestion from Jim Meyering to use the '-d' option to ls to avoid a future case of directories matching.
* build: Ensure building appliance depends on guestfsdMatthew Booth2009-11-211-1/+1
| | | | | | | Previously, only the update.sh rule checked the daemon had been built. update.sh is called directly from within make.sh, so in that path the dependency was never checked. This adds the daemon dependency explicitly to the rebuild-from-scratch path.
* build: Fix inter-directory dependenciesMatthew Booth2009-11-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds an explicit dependency on generator.ml for every file it generates, except java files. Java is left for another time because it's considerably trickier. It also adds a build rule for src/libguestfs.la so it can be rebuilt as required from other directories. It does this by creating a top level make file, subdir-rules.mk, which can be included from sub-directories. sub-directories need to define 'generator_built' to include local files which are built by generator.ml, and they will be updated automatically. This fixes parallel make, and will automatically re-create generated files when make is run from any directory. It also fixes the problem which efad4f53 was targetting. Specifically, src/guestfs_protocol.(c|h) had an erroneous dependency on stamp-generator, and therefore generator.ml, despite not being directly created by it. This caused them to be recreated every time generator.ml ran rather than only when src/guestfs_protocol.x was updated, which cascaded into a daemon and therefore appliance update. This patch also changes the contents of the distribution tarball by including files created by rpcgen.
* appliance: Print uptime.Richard Jones2009-11-181-2/+4
| | | | | Print the uptime just before the init script runs the daemon, so we have a good idea of how long the kernel boot + init script takes to run.
* Set cpio blocksize to 64K.Richard Jones2009-11-111-1/+1
| | | | | See: https://www.redhat.com/archives/fedora-devel-list/2009-November/thread.html#00523
* Debian: don't depend on gfs-tools since these have depsolving problems.Richard Jones2009-11-101-0/+2
|
* Add ata_piix to kernel module whitelist (RHBZ#533886).Richard Jones2009-11-101-0/+1
|
* appliance: Enhance mkfs to support many more filesystem types.Richard Jones2009-11-091-0/+19
| | | | | | | | | | | | | | | | This fixes support for NTFS, and adds support for: - reiserfs - btrfs - GFS and GFS2 - JFS - HFS and HFS+ - NILFS - OCFS2 (disabled) We don't enable OCFS2 by default, because it pulls in about 140 extra packages into the appliance. GFS & GFS2 default to single node (no lock manager etc).
* appliance: Add xfsprogs to list of packagesRichard Jones2009-11-051-0/+1
|
* Debian: Include ISOFS driver in the kernel.Richard Jones2009-11-041-0/+3
|
* Add make.sh.in to EXTRA_DIST.Richard Jones2009-11-031-1/+2
|
* appliance: Don't rebuild the appliance every time configure runs.Richard Jones2009-11-021-0/+9
| | | | | | | | | | config.status touches make.sh each time it runs, even if the resulting script would not change. This causes the appliance to get rebuilt much more frequently than is necessary. There's no way to stop configure running, but we can move the config.status command into a Makefile rule to stop this undesirable behaviour.
* Include HFS (Mac OS X) driver.Richard Jones2009-10-251-1/+2
|
* init: Check that start_udev succeededMatthew Booth2009-10-211-2/+2
| | | | | | | If start_udev fails for any reason, notice and fall through to manual /dev creation. Patch from Charles Duffy <charles@dyfis.net>
* Add 'virt-rescue' command.Richard Jones2009-09-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This command runs a "rescue appliance" against a virtual machine or disk image. This is useful for making ad-hoc interactive changes to virtual machines. $ virt-rescue --ro /dev/vg_trick/F11x64 Welcome to virt-rescue, the libguestfs rescue shell. Note: The contents of / are the rescue appliance. You have to mount the guest's partitions under /sysroot before you will be able to examine them. bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell ><rescue> mount /dev/vg_f11x64/lv_root /sysroot EXT4-fs (dm-0): barriers enabled kjournald2 starting: pid 269, dev dm-0:8, commit interval 5 seconds EXT4-fs (dm-0): internal journal on dm-0:8 EXT4-fs (dm-0): delayed allocation enabled EXT4-fs: file extents enabled EXT4-fs: mballoc enabled EXT4-fs (dm-0): mounted filesystem with ordered data mode ><rescue> ls /sysroot/ bin dev home lib64 media opt root selinux sys usr boot etc lib lost+found mnt proc sbin srv tmp var ><rescue> exit
* Tidy up appliance rescue code.Richard Jones2009-09-231-3/+7
| | | | | The appliance shouldn't run the daemon after we leave the rescue shell. It should just exit instead.
* Add diffutils package.Richard Jones2009-09-141-0/+1
| | | | | On Fedora 12, /usr/bin/cmp is not pulled in unless we explicitly add the diffutils package.
* mke2fs: Use e4fsprogs programs if available.Richard W.M. Jones2009-08-191-0/+2
| | | | | | | On RHEL 5, mke2fs is ancient, and there is a non-standard "mke4fs" binary which acts like the more recent mke2fs on Fedora. Since there are several annoyances and actual bugs in the ancient RHEL 5 mke2fs, use mke4fs instead if it's available.
* appliance: Remove /usr/sbin/tcpd - it's unreadable on RHEL 5.4.Richard Jones2009-08-131-0/+1
|
* Add 'setcon', 'getcon' commands to set and get the SELinux context.Richard Jones2009-08-131-0/+1
|
* If using SELinux, mount /selinux in the appliance.Richard Jones2009-08-122-0/+7
| | | | | | If selinux=1 on the Linux kernel command line, then we mount /selinux in the appliance. We will also bind-mount this directory into guests when we run commands.
* Add contents of /proc/mounts to the debugging information.Richard Jones2009-08-111-0/+1
|
* Add ne2k-pci driver to the appliance.Richard Jones2009-08-061-0/+4
| | | | | This allows people to use the ne2k-pci network driver, for those situations where the virtio_net driver is broken (cough 516022 cough).
* appliance: More debug added to /init.Richard Jones2009-08-061-0/+2
|
* appliance: Include more debug output in the /init script.Richard Jones2009-08-061-5/+12
| | | | | Output more debugging information from this script, to enhance the usefulness of LIBGUESTFS_DEBUG output.
* build: remove trailing blank lines; enable the syntax-check ruleJim Meyering2009-08-045-5/+0
| | | | | | | | | | | | | | * cfg.mk (disable_temporarily): Remove sc_prohibit_trailing_blank_lines. * appliance/Makefile.am: Remove trailing blank line(s). * appliance/debian/modules/y0_install-guestfsd: Likewise. * appliance/make.sh.in: Likewise. * appliance/packagelist.in: Likewise. * appliance/update.sh.in: Likewise. * haskell/run-bindtests: Likewise. * ocaml/run-bindtests: Likewise. * python/run-python-tests: Likewise. * recipes/squashfs.example: Likewise. * ruby/run-ruby-tests: Likewise.
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-032-14/+14
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* Ignore failure of 'mv' commands in appliance Makefile.Richard W.M. Jones2009-07-311-2/+2
| | | | | A lot of people report these as 'errors' when they are not. Hide the error messages.
* add nls_base.ko and nls_cp437.ko for vfatGuido Günther2009-07-181-0/+2
|
* Fix non-srcdir builds: Files generated by configure should be in the tarball.Richard Jones2009-07-161-2/+0
|
* More misc fixes to non-srcdir builds.Richard Jones2009-07-161-1/+1
|
* Miscellaneous fixes for non-srcdir builds.Richard Jones2009-07-161-1/+1
|
* Add reiserfs module to kernel whitelist.Richard Jones2009-07-141-0/+2
|
* RHEL 5: RHEL kernels don't have $arch at the end, so look for non-arch ↵Richard Jones2009-07-071-1/+5
| | | | kernels too.
* use 'stupid_simple' instead of 'nested' initramfsGuido Günther2009-07-041-1/+1
| | | | speeds up start of the appliance
* select proper kernel by architectureGuido Günther2009-07-041-1/+1
|
* Make it possible to build in a separate directoryMatthew Booth2009-07-033-3/+5
| | | | | | | | | | | | | | | | | | | | | | This patch allows you to do: mkdir build cd build ../configure ... make This will output all generated files to the build directory. Given that autogen automatically runs configure, you can also do: BUILDDIR=./build ./autogen.sh which will do the right thing. Also: * Fix a dependency bug which means that guestfs_protocol.h isn't automatically rebuilt. * Re-running autogen.sh with no arguments won't blow away your previous configure arguments.
* touch fakeroot.logGuido Günther2009-07-031-0/+2
| | | | indicationg we're done creating the appliance
* remove superflous debirf scriptsGuido Günther2009-07-035-8/+0
|
* Don't keep rebuilding debirf module symlinks.Richard W.M. Jones2009-07-031-0/+1
|
* Add Debian appliance directory to the distfile.Richard W.M. Jones2009-07-031-1/+22
| | | | | | | 'make dist' won't copy symlinks into the output file, so we have to add a rule to the Makefile to copy these. (Issue reported by Guido Gunther).