summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.c
diff options
context:
space:
mode:
authorDirk Mueller2017-11-04 04:12:54 +0100
committerDirk Mueller2017-11-04 04:12:54 +0100
commita9b9d59d62129e36cc96c584bbde86394044661a (patch)
tree758eff4e01a60dd7b04bec51ba6981105ba38ad9 /sys-utils/lscpu.c
parentsfdisk: create empty label on 'write' command (diff)
downloadkernel-qcow2-util-linux-a9b9d59d62129e36cc96c584bbde86394044661a.tar.gz
kernel-qcow2-util-linux-a9b9d59d62129e36cc96c584bbde86394044661a.tar.xz
kernel-qcow2-util-linux-a9b9d59d62129e36cc96c584bbde86394044661a.zip
lscpu: Treat read failure on Xen Hypervisor properties as non-fatal
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.
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r--sys-utils/lscpu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index 8b4fe0bcd..10c20aa16 100644
--- a/sys-utils/lscpu.c
+++ b/sys-utils/lscpu.c
@@ -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) {}