diff options
author | Philip Prindeville <philipp@redfish-solutions.com> | 2017-10-30 12:32:46 -0600 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-01-04 13:44:42 +0100 |
commit | d280c03a1d1a1c418db7ceb2910c52145c8c756a (patch) | |
tree | cdbb30b079492ba60cf8cc41b65a84676ab91fca /target/linux/x86 | |
parent | 445f980a386960840414898af17fbac2fda82779 (diff) | |
download | upstream-d280c03a1d1a1c418db7ceb2910c52145c8c756a.tar.gz upstream-d280c03a1d1a1c418db7ceb2910c52145c8c756a.tar.bz2 upstream-d280c03a1d1a1c418db7ceb2910c52145c8c756a.zip |
x86: preinit: use board_name on Sm Super Servers
Supermicro puts "Super Server" into their product_name DMI value
for a whole slew of products, making this value about as useful
as not having been filled in at all. Instead, fall back on the
board_name instead.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Diffstat (limited to 'target/linux/x86')
-rw-r--r-- | target/linux/x86/base-files/lib/preinit/01_sysinfo | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/x86/base-files/lib/preinit/01_sysinfo b/target/linux/x86/base-files/lib/preinit/01_sysinfo index 3c21c07615..466c831e7e 100644 --- a/target/linux/x86/base-files/lib/preinit/01_sysinfo +++ b/target/linux/x86/base-files/lib/preinit/01_sysinfo @@ -17,7 +17,14 @@ do_sysinfo_x86() { for file in product_name board_name; do product="$(cat /sys/devices/virtual/dmi/id/$file 2>/dev/null)" - [ -n "$product" ] && break + case "$vendor:$product" in + "Supermicro:Super Server") + continue + ;; + ?*:?*) + break + ;; + esac done [ -n "$vendor" -a -n "$product" ] || return |