Commit Graph

12238 Commits

Author SHA1 Message Date
Yuri Chornoivan
58a72cb2aa Translated using Weblate (Ukrainian)
Currently translated at 100.0% (960 of 960 strings)

Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/uk/
2025-03-05 07:38:45 +01:00
rwmjones
4401d81654 Merge pull request #173 from weblate/weblate-libguestfs-libguestfs-master
Translations update from Fedora Weblate
2025-03-04 08:39:52 +00:00
Weblate
8876360d97 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/
2025-03-03 22:09:20 +01:00
Krascovict Petrov
f63f88a5bf Translated using Weblate (Portuguese (Brazil))
Currently translated at 0.1% (24 of 13337 strings)

Translation: libguestfs/libguestfs-docs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-docs-master/pt_BR/
2025-03-03 22:09:20 +01:00
denisecheng
0c70675aae support TencentOS
Signed-off-by: denisecheng <denisecheng@tencent.com>
Fixes: https://github.com/libguestfs/libguestfs/pull/172
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2025-03-03 14:22:37 +00:00
Jacob Reger
f81444ccad libguestfs: Rust binding build error and warning fixes
Internal error type did not implement the necessary traits to be
treated as a proper Rust error. This would cause ergonomic issues
with manual error handling and with error handling crates like
anyhow. Implement the Display and Error trait for internal Error
type. This also fixes the build warnings.

Signed-off-by: Jacob Reger <regerjacob@gmail.com>
2025-02-25 22:00:12 +00:00
Jacob Reger
d7d5264ce8 libguestfs: Rust binding build error and warning fixes
Fixed break in Rust bindings where callback registering expected a
*const i8, but were provided with a *const c_char. Changed to be both
*const c_char in alignment with the libguestfs documentation.

Signed-off-by: Jacob Reger <regerjacob@gmail.com>
2025-02-25 21:53:36 +00:00
Richard W.M. Jones
95ed25aba6 Version 1.55.6. v1.55.6 2025-02-19 16:42:52 +00:00
Richard W.M. Jones
47ac4871b2 daemon: New command_out and sh_out APIs
These APIs allow you to capture output from guest commands that
generate more output than the protocol limit allows.

Thanks: Nijin Ashok
Fixes: https://issues.redhat.com/browse/RHEL-80159
2025-02-19 12:01:10 +00:00
Richard W.M. Jones
8d61b04dd6 ruby: Make sure all object files are cleaned up
There were several, large *.o files left over after 'make clean':

$ ls ruby/ext/guestfs/
actions-0.c  actions-2.c  actions-4.c  actions-6.c    handle.c
actions-0.o  actions-2.o  actions-4.o  actions-6.o    handle.o
actions-1.c  actions-3.c  actions-5.c  actions.h      module.c
actions-1.o  actions-3.o  actions-5.o  extconf.rb.in  module.o
2025-02-18 11:57:07 +00:00
Richard W.M. Jones
a1ecc0006c tests/syslinux/test-syslinux.pl: Send skip messages to stderr
Otherwise they won't appear in test-suite.log.
2025-02-18 11:55:07 +00:00
Richard W.M. Jones
3749443464 tests/syslinux/test-syslinux.pl: Fix disk image location
tests/Makefile.am assumes the test image is located in
tests/syslinux/, but we actually created it in tests/.  Fix the
location, and also ensure the test will clean it up after running
successfully.
2025-02-18 11:53:41 +00:00
Richard W.M. Jones
14e78e9ac8 Version 1.55.5. v1.55.5 2025-02-18 10:10:03 +00:00
Richard W.M. Jones
72cfaff5c5 Update copyright dates for 2025
Automated using this command:

perl -pi.bak -e 's/(20[012][0-9])-20[12][01234]/$1-2025/g' `git ls-files`
2025-02-16 17:00:46 +00:00
Richard W.M. Jones
1b7d905d43 logo: Restore year banner in logo
Fixes: commit e2c7bddf10
2025-02-16 16:57:43 +00:00
Richard W.M. Jones
32644856e7 build: Remove test-functions.sh which was moved and renamed
Fixes: commit b5fbc7e617
2025-02-16 15:39:31 +00:00
Richard W.M. Jones
b5fbc7e617 tests: Replace $TEST_FUNCTIONS
Replace strange $TEST_FUNCTIONS variable/expansion thing with
something more like what we use in nbdkit, a simple tests/functions.sh
script that gets sourced into each test script.

Update the common submodule to get:

  commit 8137d47d0e654065391151eb275e3b64f230f6f5
  Author: Richard W.M. Jones <rjones@redhat.com>
  Date:   Thu Feb 13 11:13:55 2025 +0000

    mlcustomize, mltools: Replace $TEST_FUNCTIONS

    TEST_FUNCTIONS is being removed from libguestfs and guestfs-tools (it
    was removed from virt-v2v a while back).  Make the same adjustment in
    the common submodule.

(and some other commits which are not relevant to libguestfs)
2025-02-13 11:15:34 +00:00
Daniel Gomez
82e2dea96a appliance: add support for sfdisk on Debian
Fixes virt-builder error:

virt-builder: error: libguestfs error: inspect_os: execvp: sfdisk: No
such file or directory

Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
2025-02-06 08:26:20 +00:00
Daniel Gomez
91fab3f498 appliance: add dhcpcd support on Debian
Debian has replaced the deprecated isc-dhcp-client (dhclient) with
dhcpcd-base (dhcpcd) as the default DHCP client [1]. This causes network
issues in virt-builder since isc-dhcp-client is no longer installed
by default.

Add support for dhcpcd (dhcpcd-base package) in Debian.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041066

Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
2025-02-06 08:26:20 +00:00
Richard W.M. Jones
2c6fb596b7 Version 1.55.4. v1.55.4 2025-02-05 13:33:39 +00:00
Richard W.M. Jones
6ba8449927 appliance/init: Fix /usr/sbin symlinks in Fedora 42+
Since Fedora 42 merged /usr/sbin and /usr/bin, /usr/sbin is usually
populated with symbolic links to binaries in /usr/bin.  These are
created by a complicated script in filesystem.spec that we don't run.
Emulate sort of what that script is doing instead.

This is a hack that we can eventually remove, hopefully.

See-also: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PCU2WWLEGLGIOY4TCCBIHLYS6ZCZ4GSS/
2025-02-05 13:09:26 +00:00
rwmjones
0dee44bd36 Merge pull request #169 from weblate/weblate-libguestfs-libguestfs-master
Translations update from Fedora Weblate
2025-02-03 08:04:00 +00:00
Ricky Tigg
9cfa081a91 Translated using Weblate (Finnish)
Currently translated at 9.7% (94 of 960 strings)

Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/fi/
2025-01-11 08:16:02 +01:00
rwmjones
16a407fc44 Merge pull request #168 from weblate/weblate-libguestfs-libguestfs-master
Translations update from Fedora Weblate
2025-01-09 09:13:25 +00:00
Weblate
19e2caf587 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/
2025-01-09 09:38:45 +01:00
Ricky Tigg
1d7897aa63 Translated using Weblate (Finnish)
Currently translated at 1.4% (231 of 16048 strings)

Translation: libguestfs/libguestfs-docs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-docs-master/fi/
2025-01-09 09:38:44 +01:00
Richard W.M. Jones
ef64bb6a88 Version 1.55.3. v1.55.3 2025-01-08 17:43:19 +00:00
Richard W.M. Jones
2ec93578be po-docs/libguestfs-docs.pot: Rebuild this file from scratch
Reported-by: Ricky Tigg
Fixes: https://github.com/libguestfs/libguestfs/issues/167
2025-01-08 12:12:07 +00:00
Richard W.M. Jones
b875c5e6b0 dist: Force po-docs/libguestfs-docs.pot to be rebuilt
It's not ideal to delete this file, but it seems like the only way to
force make to really rebuild it.
2025-01-08 12:10:33 +00:00
Richard W.M. Jones
48d3264573 po-docs: Use po4a-updatepo
As far as I can tell using po4a-gettextize was wrong here.  The right
subtool for combining multiple documents into a .pot is po4a-updatepo,
so use that one instead.
2025-01-08 12:04:26 +00:00
Richard W.M. Jones
1aa883c50d docs/guestfs-release-notes-1.34.pod: Clarify confusing language
Reported-by: Ricky Tigg
Fixes: https://github.com/libguestfs/libguestfs/issues/167
2025-01-08 11:44:39 +00:00
rwmjones
0e982277fa Merge pull request #164 from rwmjones/issue162
daemon: Translate file 5.46 "Intel i386" to "i386"
2025-01-06 09:39:06 +00:00
Richard W.M. Jones
ed21af3b0a daemon: Translate file 5.46 "Intel i386" to "i386"
Fixes: https://github.com/libguestfs/libguestfs/issues/162
Reported-by: Toolybird
2025-01-02 16:13:35 +00:00
rwmjones
7008e2e350 Merge pull request #161 from weblate/weblate-libguestfs-libguestfs-master
Translations update from Fedora Weblate
2025-01-02 15:43:25 +00:00
Ricky Tigg
1e52c5b253 Translated using Weblate (Finnish)
Currently translated at 1.3% (211 of 16048 strings)

Translation: libguestfs/libguestfs-docs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-docs-master/fi/
2024-12-20 16:48:24 +01:00
Weblate
db0ad1f25d Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/
2024-12-20 10:39:13 +01:00
Ricky Tigg
0ffef7e655 Translated using Weblate (Finnish)
Currently translated at 1.2% (199 of 16048 strings)

Translation: libguestfs/libguestfs-docs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-docs-master/fi/

Translated using Weblate (Finnish)

Currently translated at 9.6% (93 of 960 strings)

Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/fi/
2024-12-20 10:39:13 +01:00
Richard W.M. Jones
996dd8774f build: Move baseline OCaml to 4.08
OCaml 4.08.0 was released on 2019-06-14, over 5 years ago.  By
requiring a slightly later OCaml version, we can drop more
compatibility code which was only used by older versions.

Consistent with qemu & libvirt, this drops support for compiling
upstream libguestfs on RHEL 8 (ocaml-4.07.0-4.el8.x86_64).

Qemu policy:
https://www.qemu.org/docs/master/about/build-platforms.html

Libvirt policy:
https://libvirt.org/platforms.html

Update the common submodule, pulling in:

  Richard W.M. Jones (4):
      qemuopts: Add ability to add raw, unquoted output to qemu scripts
      qemuopts: Fix missing break statement
      mlstdutils: Remove Option module
      Remove test for caml_alloc_initialized_string
2024-11-21 14:30:44 +00:00
Richard W.M. Jones
453de98bda Version 1.55.2. v1.55.2 2024-11-18 14:39:38 +00:00
Richard W.M. Jones
4ebec324fe docs: recipes: Update xpath command
Link: https://lists.libguestfs.org/archives/list/guestfs@lists.libguestfs.org/thread/SOWJHHHJXDFAKSCCLXCNUE5X7W22VUEQ/
Reported-by: Emmanuel Kasper
2024-11-18 14:05:06 +00:00
Richard W.M. Jones
73186b154c generator: Remove common/mlv2v/uefi.ml{,i} files
Stop generating these files.  They are currently only used by virt-v2v
-o qemu mode, and there are better ways to locate the UEFI files
there.

Update the common submodule to bring in:

  Richard W.M. Jones (5):
      mlcustomize: Add heuristic support for Windows Server 2025
      mlcustomize/customize_run.ml: Move 'in' to new line
      mlstdutils/guestfs_config: Define host_os
      mlcustomize, mltools: Check guest OS is compatible before allowing --run
      Remove mlv2v/ subdirectory
2024-11-15 11:43:50 +00:00
rwmjones
8af8e15b44 Merge pull request #159 from twouters/bugfix/dhcpcd_resolvconf_symlink
Fix dhcpcd failing on systemd-resolved stub
2024-11-14 09:01:05 +00:00
Thomas Wouters
84d1cd0707 Fix dhcpcd failing on systemd-resolved stub
dhcpcd fails to update /etc/resolv.conf if is a dangling symlink, so remove it
if it is.

This happens on Arch Linux when systemd-resolved is enabled by symlinking
/etc/resolv.conf to /run/systemd/resolve/stub-resolv.conf. The symlink is copied
into the supermin appliance, but the target file is not and this causes dhcpcd to
fail when it tries to update /etc/resolv.conf.

The handling of /etc/resolv.conf could be improved in dhcpcd but it's not their
job to decide when to remove the symlink. We do have the authority to decide
whether or not to use systemd-resolved or resolvconf in the appliance, so we can
remove it.
2024-11-13 14:09:59 +01:00
rwmjones
7d551fa7db Merge pull request #158 from weblate/weblate-libguestfs-libguestfs-master
Translations update from Fedora Weblate
2024-11-06 12:22:03 +00:00
Weblate
2ce7b00e1e Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/
2024-11-06 13:16:54 +01:00
Léane GRASSER
ea86636649 Translated using Weblate (French)
Currently translated at 63.8% (614 of 961 strings)

Translation: libguestfs/libguestfs-master
Translate-URL: https://translate.fedoraproject.org/projects/libguestfs/libguestfs-master/fr/
2024-11-06 13:16:54 +01:00
Richard W.M. Jones
a47e2cf6a8 website: Fix link to latest development version
Fixes: commit 0edaea8f91
2024-10-22 17:44:06 +01:00
Richard W.M. Jones
7932b92379 Version 1.55.1. v1.55.1 2024-10-22 17:38:11 +01:00
Richard W.M. Jones
9255abee02 build: Remove Jansson dependency
After previous changes, this library is no longer used.  We have
switched to json-c, for better compatibility with libvirt.

(cherry picked from
guestfs-tools commit e6dcf7e3a7e9170978e57ce6df1b34f92fac5ae3)
2024-10-22 16:44:53 +01:00
Richard W.M. Jones
9e3c1f44ca lib/qemu.c: Replace jansson with json-c 2024-10-22 16:44:53 +01:00