From 8027fb3b154056f44f34b769be58005e2ff22152 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 18 Nov 2024 14:05:06 +0000 Subject: [PATCH] docs: recipes: Update xpath command Link: https://lists.libguestfs.org/archives/list/guestfs@lists.libguestfs.org/thread/SOWJHHHJXDFAKSCCLXCNUE5X7W22VUEQ/ Reported-by: Emmanuel Kasper (cherry picked from commit 4ebec324fec1f371dbbb76f8352b7a26df2fa5ae) --- docs/guestfs-recipes.pod | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/guestfs-recipes.pod b/docs/guestfs-recipes.pod index dc4bb4a3c..b0c505ee2 100644 --- a/docs/guestfs-recipes.pod +++ b/docs/guestfs-recipes.pod @@ -398,18 +398,18 @@ Save the following script into a file called F: Make the script executable and run it on a named guest: - # product-name.sh RHEL60x64 - Red Hat Enterprise Linux Server release 6.0 (Santiago) + $ product-name.sh fedora-40.img + Fedora Linux 40 (Forty) You can also use an XPath query on the L XML using the C command line tool or from your favourite programming language: - # virt-inspector RHEL60x64 > xml - # xpath '//product_name' < xml - Found 1 nodes: + $ virt-inspector -a fedora-40.img > xml + $ xpath -e '//product_name' < xml + Found 1 nodes in stdin: -- NODE -- - Red Hat Enterprise Linux Server release 6.0 (Santiago) + Fedora Linux 40 (Forty) =head1 Get the default boot kernel for a Linux VM