]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hostnamed: map 'all-in-one' DMI chassis type to desktop
authorlichangze <lichangze@uniontech.com>
Tue, 8 Sep 2020 08:26:23 +0000 (16:26 +0800)
committerLennart Poettering <lennart@poettering.net>
Fri, 11 Sep 2020 07:55:44 +0000 (09:55 +0200)
src/hostname/hostnamed.c

index 7f6607a5270370d14bb52ad0d06606374a333e59..aca0a482b08c7fcd5aa47a36af08ecf4c8457b79 100644 (file)
@@ -217,6 +217,7 @@ static const char* fallback_chassis(void) {
         case 0x4: /* Low Profile Desktop */
         case 0x6: /* Mini Tower */
         case 0x7: /* Tower */
+        case 0xD: /* All in one (i.e. PC built into monitor) */
                 return "desktop";
 
         case 0x8: /* Portable */