summaryrefslogtreecommitdiffstats
path: root/appliance
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly depend on e2fsprogs.Richard Jones2010-06-281-0/+1
| | | | See: http://lists.fedoraproject.org/pipermail/devel/2010-June/137953.html
* Fix gfs2 support by adding required kernel modules.Richard Jones2010-06-281-0/+4
|
* Use the noop scheduler inside the appliance.Richard Jones2010-06-071-0/+3
| | | | | | | | | In my limited tests, this seems to make a small but noticable difference, improving the performance of some straightforward read operations by a little over 10%. For more information see: http://kbase.redhat.com/faq/docs/DOC-5428
* RHEL 6: sr_mod.ko is needed for RHEL 6 to see CD-ROM devices (RHBZ#598807).Richard Jones2010-06-021-0/+1
|
* Make the supermin appliance include local augeas lensesMatthew Booth2010-05-271-0/+3
|
* build: Remove install_kernel from EXTRA_DIST.Richard Jones2010-05-241-1/+0
| | | | | This updates commit a34fadf900625f1f7359ecf3ca760820ffa20815, removing this now non-existent script from EXTRA_DIST.
* ubuntu: Use direct udevd method to start udev on Ubuntu.Richard Jones2010-05-201-1/+1
| | | | | | | | | On Ubuntu, /etc/init.d/udev is a symlink to an upstart file, but running that causes the appliance to hang. Therefore detect if this is a symlink and fall through to the direct start of udevd. This shouldn't affect Debian because the file is not a symlink on standard Debian.
* ubuntu: Remove two FUSE packages from the default list.Richard Jones2010-05-201-2/+7
| | | | | | | fuse-utils (a dependency of these) cannot be installed under debirf because it does something with the system udevd which is not permitted. Seems to be a bug either in fakeroot or in the post install scripts for fuse-utils.
* ubuntu: Ignore packages in packagelist.in which are missing.Richard Jones2010-05-201-2/+10
| | | | | | | | | | | | | | For distros using 'yum', packages which cannot be found are just ignored. This allows us to include for example 'e4fsprogs' on the list even though that only exists on RHEL 5. However for Debian-derived distros, missing packages would cause apt to fail. This was particularly a problem when building Ubuntu since it doesn't have as complete a list of packages, and the list changed a lot between releases. This commit adds a check first for missing packages, ignoring those and thus acting more like 'yum'.
* Ubuntu: Use apt-get instead of aptitude when installing guestfsd.Richard Jones2010-05-201-2/+2
|
* Ubuntu: Revert install-kernel to debirf default script.Richard Jones2010-05-203-68/+2
|
* appliance: Fix /etc/resolv.confRichard Jones2010-05-201-1/+1
| | | | | | | | Since changing to use link local address (commit fbf29976b33a69c64dc7847c54454bf2cfa5fde6) we have included an incorrect resolv.conf file in the appliance which points to the old (qemu) DNS server. This commit changes to use the new DNS server.
* appliance: Ignore utempter unreadable binaries (for RHEL 6).Richard Jones2010-05-181-0/+1
|
* appliance: Change comment about unreadable binaries.Richard Jones2010-05-181-3/+4
|
* Ensure ordinary appliance is updated before trying to build supermin appliance.Richard Jones2010-05-141-2/+2
|
* Unify supermin appliance building using febootstrap 2.7Richard Jones2010-05-135-1120/+24
|
* Use link-local addresses between appliance and host (RHBZ#588763).Richard Jones2010-05-041-2/+2
|
* Whitelist the loop kernel moduleMatthew Booth2010-04-221-0/+2
| | | | loop is sometimes a module, for example on RHEL 5.
* Add zfs-fuse (ZFS via FUSE) support to the appliance.Richard Jones2010-04-201-0/+1
|
* Fix time and timezone to be correct within the appliance.Richard Jones2010-04-122-1/+12
|
* New API calls to upload/download txz files (RHBZ#580556).Richard Jones2010-04-081-0/+2
|
* rescue: Pass $TERM from library into the virt-rescue appliance.Richard Jones2010-03-261-1/+1
| | | | | We set it on the kernel command line, then get it out from there when the rescue appliance boots.
* rescue: Sync disk on exit, and improve messaging.Richard Jones2010-03-261-1/+10
|
* appliance: Set $PATH instead of hard-coding paths to binaries everywhere.Richard Jones2010-03-261-1/+2
| | | | | | Change the appliance so PATH includes common directories. Thus we don't need to hard-code paths to binaries (eg. "/sbin/fdisk") everywhere.
* Add support for minix filesystem (RHBZ#576689).Richard Jones2010-03-241-0/+2
|
* appliance: Run depmod to create modules.dep for the kernel.Richard Jones2010-03-221-0/+5
| | | | | | Since we disabled running new-kernel-pkg in febootstrap, this has meant that the normal appliance has not had a modules.dep file. (Supermin was unaffected by this).
* Add minimal vim to the appliance for virt-rescue.Richard Jones2010-03-161-0/+2
| | | | | virt-rescue lacks an editor. Add vim-minimal (Fedora) or vim-tiny (Debian) to make up for this omission.
* Tab to space (whitespace fixes only).Richard Jones2010-03-121-2/+2
|
* Rewrite libguestfs-supermin-helper in C.Richard Jones2010-03-123-125/+927
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libguestfs-supermin-helper was previously a shell script. Although we had steadily optimized it, there were a number of intractable hot spots: (1) cpio still reads input files in 512 byte chunks; this is *very* pessimal behaviour, particularly when SELinux is enabled. (2) the hostfiles globbing was done very inefficiently by the shell, with the shell rereading the same directory over and over again. This is a rewrite of this shell script in C. It is approximately 3 times faster without SELinux, and has an even greater speed difference with SELinux. The main features are: (a) It never frees memory, making it simpler. The program is designed to run and exit in sub-second times, so this is acceptable. (b) It caches directory reads, making the globbing of host files much faster (measured this as ~ 4 x speed up). (c) It doesn't use external cpio, but instead contains code to write newc format cpio files, which is all that the kernel can read. Unlike cpio, this code uses large buffers for reads and writes. (d) Ignores missing or unreadable hostfiles, whereas cpio gave a warning. (e) Checks all return values from system calls. (f) With --verbose flag, it will print messages timing itself. This passes all tests. Updated with feedback from Jim Meyering.
* Special case hostfiles handling for libntfs-3g.soRichard Jones2010-03-121-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ntfs-3g project keeps bumping their soname, and this causes dependency problems for the Fedora package. The root of the problem is we depend on /lib/libntfs-3g.so.<N>, but if <N> keeps bumping, the dependency keeps breaking. This commit changes the hostfiles (and hence dependency) to be on /lib/libntfs-3g.so.* instead. The downside to this is we could end up pulling more files into the appliance than are strictly required, but it will fix the Fedora packaging problems being felt by the Fedora maintainer of ntfs-3g. After applying this commit, the change to hostfiles looks like this: @@ -1489,7 +1489,7 @@ ./lib/libpam_misc.so.0 ./lib/libdmraid.so ./lib/libidn.so.11 -./lib/libntfs-3g.so.74 +./lib/libntfs-3g.so.* ./lib/libext2fs.so.2.* ./lib/libpam.so.0 ./lib/libsepol.so.1 @@ -1520,7 +1520,6 @@ ./lib/libnss_files-*.so ./lib/libgio-2.0.so.0 ./lib/libpam_misc.so.0.* -./lib/libntfs-3g.so.74.* ./lib/libanl.so.1 ./lib/libdevmapper-event-lvm2.so.2.* ./lib/libpthread.so.0
* Remove plymouth libraries from the appliance.Richard Jones2010-03-081-1/+3
|
* More complete fix for bash regexp quoting bug.Richard Jones2010-03-021-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | Commit 457fccae1b665347 was not a complete fix, in that it didn't work properly on RHEL 5 era bash (3.2.x). For example: file=libntfs-3g.so.74 [[ "$file" =~ ^lib(.*)\.so\.([0-9]+)\. ]] && \ echo "lib${BASH_REMATCH[1]}.so.${BASH_REMATCH[2]}.*" would on those old shells print: libntfs-3g.so.7.* It seems the final \. was being treated as a plain period (ie. match anything). The only way to work around this incompatibility is to assign the patterns to variables and match on those, ie: p='^lib(.*)\.so\.([0-9]+)\.' [[ "$file" =~ $p ]] && ... This works in both old and new shells.
* build: Fix for bash quoting in supermin-split.sh.in (RHBZ#566511 RHBZ#566512)Richard Jones2010-03-011-8/+19
| | | | | | | | | | Bash changed how the =~ operator worked, see bash FAQ question E14 http://tiswww.case.edu/php/chet/bash/FAQ and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487387#25 (RHBZ#566511). This also stops stray "builddir" (yum database) files being incorporated into supermin hostfiles in Koji (RHBZ#566512).
* Use 'service' if installedGuido Günther2010-02-241-1/+10
| | | | | | | | | | | | | | | | | | | | | Hi, attached patch should make: http://git.debian.org/?p=pkg-libvirt/libguestfs.git;a=blob;f=debian/patches/0003-appliance-Use-service-udev-start-instead-of-running-.patch;h=c9e6b8489807d4fb1247cb6a8b6f9799bad2a09e;hb=d3a21b5b6850fc3c6e7903d0f5cafa3eb4197d49 http://git.debian.org/?p=pkg-libvirt/libguestfs.git;a=blob;f=debian/patches/0004-Ubuntu-Prefer-starting-udev-by-hand-instead-of-using.patch;h=64b65a971b186e6ab1c9351e94b46d6f5aa242e0;hb=d3a21b5b6850fc3c6e7903d0f5cafa3eb4197d49 superflous. If there's an init script it uses 'service' or falls back to calling the init script directly if it isn't there, otherwise it starts udev directly. Tested on Debian only so far. The patch is based on Rich's above two patches. Cheers, -- Guido From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org> Date: Tue, 23 Feb 2010 18:49:34 +0100 Subject: [PATCH] Check for service and use it if it's there Based on Richard's two patches for the Ubuntu build.
* 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
|