Richard W.M. Jones 7dbcddd5bd New API: inspect_get_build_id
Add an API to return the build ID of the guest.  This to allow a
future change to be able to distinguish between Windows 10 and Windows 11
which can only be done using the build ID.

For Windows we can read the CurrentBuildNumber key from the registry.
For Linux there happens to be a BUILD_ID field in /etc/os-release.
I've never seen a Linux distro that actually uses this.

Reviewed-by: Laszlo Ersek <lersek@redhat.com>
(cherry picked from commit f3dd67affe)
2022-12-02 11:00:59 +00:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2022-12-02 11:00:59 +00:00
2022-12-02 11:00:59 +00:00
2021-04-08 11:36:40 +01:00
2021-04-09 14:27:11 +01:00
2020-03-06 19:32:32 +00:00
2022-12-02 11:00:59 +00:00
2020-03-06 19:32:32 +00:00
2022-07-06 16:29:28 +01:00
2021-04-08 11:36:40 +01:00
2021-04-08 11:36:40 +01:00
2022-05-26 11:19:57 +01:00
2020-01-14 16:21:22 +01:00
2022-07-06 16:29:28 +01:00
2019-11-13 12:49:55 +00:00
2020-03-06 19:32:32 +00:00
2022-07-06 16:29:28 +01:00
2021-04-08 12:55:19 +01:00

Libguestfs is tools and a library for accessing and modifying guest
disk images.  For more information see the home page:

  http://libguestfs.org/

For discussion, development, patches, etc. please use the mailing
list:

  http://www.redhat.com/mailman/listinfo/libguestfs

To find out how to build libguestfs from source, read:

  docs/guestfs-building.pod
  http://libguestfs.org/guestfs-building.1.html
  man docs/guestfs-building.1

Copyright (C) 2009-2020 Red Hat Inc.

The library is distributed under the LGPLv2+.  The programs are
distributed under the GPLv2+.  Please see the files COPYING and
COPYING.LIB for full license information.  The examples are under a
very liberal license.
Languages
C 42.7%
OCaml 35.5%
Shell 7.1%
Makefile 4%
Perl 2.6%
Other 8%