diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2021-01-07 18:14:07 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2021-01-07 18:14:07 +0100 |
commit | 16f383629c1e41b44a9c75a02f190ef6ec8d3ad7 (patch) | |
tree | 8e011c6ada841cc14d6b9777e09bf92825da557f | |
parent | 4fb73a652e33ce85f38770ce341785ae1c0890cd (diff) | |
download | alpine-conf-16f383629c1e41b44a9c75a02f190ef6ec8d3ad7.zip |
setup-alpine: fix qemu detection
-rw-r--r-- | setup-alpine.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setup-alpine.in b/setup-alpine.in index 80e10ff..392290b 100644 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -17,7 +17,8 @@ get_fqdn() { } is_qemu() { - grep -q "QEMU" /proc/cpuinfo + grep -q "QEMU" /proc/cpuinfo \ + || strings /sys/firmware/dmi/tables/DMI 2>/dev/null | grep -q QEMU } usage() { |