]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: Treat read failure on Xen Hypervisor properties as non-fatal
authorDirk Mueller <dmueller@suse.com>
Sat, 4 Nov 2017 03:12:54 +0000 (04:12 +0100)
committerDirk Mueller <dmueller@suse.com>
Sat, 4 Nov 2017 03:12:54 +0000 (04:12 +0100)
At least on the Sydney Amazon EC2 region this file doesn't show up,
and the fatal exit code causes the rest of the useful information
to not show up.

sys-utils/lscpu.c

index 8b4fe0bcd910988febce90ed505c13016800aaaf..10c20aa1632ac1bc48ef10a44b8f2d43875501cd 100644 (file)
@@ -954,9 +954,6 @@ read_hypervisor(struct lscpu_desc *desc, struct lscpu_modifier *mod)
                                                                == XEN_FEATURES_PVH_MASK)
                                        desc->virtype = VIRT_PARA;
                                fclose(fd);
-                       } else {
-                               err(EXIT_FAILURE, _("failed to read from: %s"),
-                                               _PATH_SYS_HYP_FEATURES);
                        }
                }
        } else if (read_hypervisor_powerpc(desc) > 0) {}