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