Commit Graph

1559 Commits

Author SHA1 Message Date
Richard Jones
aca024e976 Remove plymouth libraries from the appliance. 2010-03-08 16:04:09 +00:00
Daniel Cabrera
f550f31477 Spanish translation of libguestfs (RHBZ#570181). 2010-03-03 15:49:39 +00:00
Richard Jones
4891ff9945 More complete fix for bash regexp quoting bug.
Commit 457fccae1b 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.
2010-03-02 10:34:20 +00:00
Richard Jones
d09a918e08 Prepare for version 1.0.85.
Update PO files.
1.0.85
2010-03-01 14:30:17 +00:00
Richard Jones
d9e2285837 fuse: Fix typo in test. 2010-03-01 14:17:31 +00:00
Richard Jones
457fccae1b build: Fix for bash quoting in supermin-split.sh.in (RHBZ#566511 RHBZ#566512)
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).
2010-03-01 13:32:34 +00:00
Piotr Drąg
afcb3695b6 Updated Polish translations (RHBZ#502533). 2010-03-01 09:38:07 +00:00
Richard Jones
49d85054fc Remove bogus msgstr from kn.po. 2010-02-25 20:02:38 +00:00
Guido Günther
de33cc91ee List application in Debian based vm images
Hi,
attached patch adds the code to list applications installed in Debian
based vm images.
Cheers,
 -- Guido

>From 9427a14725b33415058a0713923c62bd231504ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Tue, 23 Feb 2010 21:05:02 +0100
Subject: [PATCH 2/2] Add application listing for Debian
2010-02-24 15:30:41 +00:00
Guido Günther
b5c307b7d6 Debian package format
Hi,
Minor nitpick: the Debian folks usually refer to deb as the package format not dpkg.
Cheers,
 -- Guido

>From 7a9665d40e0a3109833de10f17831ae06fc8885a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Tue, 23 Feb 2010 21:04:37 +0100
Subject: [PATCH 1/2] Debina package format is called 'deb' not 'dpkg'
2010-02-24 15:30:41 +00:00
Guido Günther
d070a017f7 check for grub/menu.lst too
On Tue, Feb 23, 2010 at 08:07:14PM +0100, Guido Günther wrote:
> On Tue, Feb 23, 2010 at 07:52:43PM +0100, Guido Günther wrote:
> > Hi,
> > attached patch makes virt-inspector find the kernels on Debian systems.
> > Since there is no /etc/grub.conf it falls back to
> > $grubpartition/grub/menu.lst.
> Patch got somehow broken. New version fortchcoming. Sorry for the noise.
Attached now. No idea where the 'if' went in the first version ;)
 -- Guido

>From d30b4946f017ff8bde9d4ff62f93c418a707d9e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Tue, 23 Feb 2010 19:50:40 +0100
Subject: [PATCH] Check for grub/menu.lst if /etc/grub.conf can't be found
2010-02-24 15:30:41 +00:00
Guido Günther
4ff21ceb25 Use 'service' if installed
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.
2010-02-24 15:30:41 +00:00
Richard Jones
1ea1e53634 Update PO files. 2010-02-24 10:33:27 +00:00
Shankar Prasad
d6a10efaaa Added Kannada translations (RHBZ#567860). 2010-02-24 10:32:03 +00:00
Richard Jones
a8c3723e38 Spin off hivex as a separate upstream project.
This commit makes the semi-independent hivex library into a
separate upstream project.  The git repo for hivex is now:

http://git.annexia.org/?p=hivex.git;a=summary

Downloads of hivex are available here:

http://libguestfs.org/download/

All questions, patches, bugs etc should be sent to the libguestfs
mailing list and bug tracker.
2010-02-22 13:19:21 +00:00
Guido Günther
aa4700f032 enable scrub on Debian 2010-02-22 09:41:52 +00:00
Richard Jones
219b80cc6c hivexsh: Print hex bytes >= 0x80 correctly.
These were being interpreted as signed chars, and thus printed
as "ffffff80" etc.
2010-02-19 13:51:07 +00:00
Richard Jones
abe54abdd2 Remove unused Perl modules.
These were 'use'd but not actually used.
2010-02-19 13:50:31 +00:00
Richard Jones
c06ee4ba02 Update PO files. 2010-02-16 08:06:04 +00:00
Rajesh Ranjan
04ee1adc91 Add Hindi translations (RHBZ#565759). 2010-02-16 08:04:59 +00:00
Richard Jones
699f38f05f Turn ProtocolLimitWarning into link to documentation section. 2010-02-15 23:15:17 +00:00
Richard Jones
e3f371fff2 initrd-cat: Needs ProtocolLimitWarning. 2010-02-15 22:58:22 +00:00
Richard Jones
dabe72cb8b Remove references to FTP, replace with FUSE.
We originally intended to implement an FTP server (and before
than, an NFS server).  But we didn't implement either.  We
did however implement a FUSE service (guestmount) which takes
the place of both.
2010-02-15 22:53:40 +00:00
Richard Jones
1f0f0df9b1 Remove some unused variables.
Since we have to compile with -Wno-unused-variables, we don't
spot unused variables in code.  I found these by compiling the
code in Ubuntu.
2010-02-15 15:55:38 +00:00
Richard Jones
30a0b5cf16 Distribute .gitignore files.
These are useful for Debian since they keep the tarball unpacked
in git.
2010-02-15 15:35:07 +00:00
Richard Jones
ed83d77025 Add 'make quickcheck' rule to run a quick check. 2010-02-15 15:33:13 +00:00
Richard Jones
2109327021 Version 1.0.84. 1.0.84 2010-02-12 19:43:17 +00:00
Richard Jones
e9c3711310 daemon: Don't need to prefix error messages with the command name.
The RPC stubs already prefix the command name to error messages.
The daemon doesn't have to do this.  As a (small) benefit this also
makes the daemon slightly smaller.

Code in the daemon such as:

  if (argv[0] == NULL) {
    reply_with_error ("passed an empty list");
    return NULL;
  }

now results in error messages like this:

  ><fs> command ""
  libguestfs: error: command: passed an empty list

(whereas previously you would have seen ..command: command:..)
2010-02-12 16:49:00 +00:00
Richard Jones
9b3ef85a3d generator: Don't prefix error messages with command name.
The command name is already being added by the RPC stubs, so
adding it again in Perl and C# just results in doubled error messages
like:
  foo: foo: the error
2010-02-12 16:48:34 +00:00
Richard Jones
c03b7e4d75 Sys::Guestfs::Lib::open_guest: Add interface parameter.
This allows you to override the default QEMU block device emulation.
2010-02-12 12:13:40 +00:00
Richard Jones
33b4b759af Sys::Guestfs::Lib::open_guest: Remove freeform parameters.
Remove the ability to pass freeform parameters to Sys::Virt->new.
We don't use it, it makes the code more complex to modify, and
indeed there are no other args that Sys::Virt->new supports so
this would never be used.

Also change $readwrite to $rw to match parameter name.
2010-02-12 12:08:58 +00:00
Richard Jones
946dc06bb8 New APIs: add-drive{,-ro}-with-if allows you to set QEMU block emulation.
The default if=... comes from configure time (currently it
defaults to if=virtio).

This change allows you to set the QEMU block emulation.

We don't think this will be used very often, but virt-v2v
requires it in order to work around a subtle problem with
running 'mkinitrd' in an appliance attached to a guest.
2010-02-12 11:47:18 +00:00
Richard Jones
48a9ff7331 generator: 'interface' is a reserved word in Java. 2010-02-12 11:46:40 +00:00
Richard Jones
8d70639e27 add_cdrom: Update docs for adding ISO images.
See also RHBZ#563450 (NB: This commit does not fix the bug).
2010-02-12 11:27:44 +00:00
Richard Jones
f93cbe5756 Use mount-options instead of mount to avoid implicit -o sync.
guestfs_mount adds -o sync implicitly.  This causes a very large
performance problem for write-intensive programs (eg. virt-v2v).

Document this as a "gotcha".

Change the tests, guestfish, Sys::Guestfs::Lib, guestmount to use
mount-options instead.

(Note that this gotcha does not affect mount-ro).

The source of the performance problem was first identified by
Matthew Booth.
2010-02-10 10:46:23 +00:00
Richard Jones
245ac56737 Add -enable-kvm option to qemu command line.
If the version of qemu being used supports -enable-kvm option,
then check if /dev/kvm is openable and add this option.

I have found this option makes no difference, although it is
*supposed* to enable KVM (hardware virtualization) support.
2010-02-09 16:30:18 +00:00
Richard Jones
e4fbe3e2cd New API call: initrd-cat to list a file from an initrd. 2010-02-09 12:26:22 +00:00
Richard Jones
80bc4ffe93 Remove invalid Plural-Forms header from ml.po. 2010-02-08 22:51:19 +00:00
Richard Jones
c0baa7bdb2 Documentation: Added a section on libguestfs gotchas. 2010-02-08 16:44:41 +00:00
Richard Jones
6c97a65ce7 Make virtio block driver be the default for the appliance.
Previously this caused a serious performance regression,
but we believe this is now fixed:
https://bugzilla.redhat.com/show_bug.cgi?id=509383
2010-02-08 10:18:31 +00:00
Ani Peter
a1d388f258 Added Malayalam translations (RHBZ#562710). 2010-02-08 10:06:32 +00:00
Richard Jones
0d4bc93c73 Distribute hivexsh.1.html HTML file. 2010-02-05 18:54:52 +00:00
Richard Jones
23e117d8cf Update PO files. 1.0.83 2010-02-05 18:42:09 +00:00
Richard W.M. Jones
665ddb18fa RHEL5: Keep old automake happy by defining docdir 2010-02-05 18:42:08 +00:00
Richard Jones
75f803a9d5 Add scripts to EXTRA_DIST. 2010-02-05 18:01:22 +00:00
Richard Jones
a65cc6b06d Update PO files. 2010-02-05 17:19:30 +00:00
Richard Jones
e543a9a214 Prepare for version 1.0.83. 2010-02-05 17:19:21 +00:00
Richard Jones
6d7777d480 Add files to EXTRA_DIST. 2010-02-05 17:19:01 +00:00
Richard Jones
75beebd012 hivex: example6: Don't double backslashes. 2010-02-05 15:12:09 +00:00
Richard Jones
8e15d5a189 hivex: example6: Hypothetical addition of keys for viostor. 2010-02-05 15:05:36 +00:00