]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysext: change the table lookup string to be more verbose
authorMaanya Goenka <maanyagoenka@microsoft.com>
Fri, 14 Jul 2023 16:36:50 +0000 (16:36 +0000)
committerMaanya Goenka <maanyagoenka@microsoft.com>
Fri, 14 Jul 2023 16:50:33 +0000 (16:50 +0000)
src/basic/os-util.c
test/units/testsuite-50.sh

index 5d06e20871cb3858135ca3e43c9e744f3369acd7..3046a40ebdcfbf7c8d609c56af0bb844322cd29f 100644 (file)
@@ -23,7 +23,7 @@
 static const char* const image_class_table[_IMAGE_CLASS_MAX] = {
         [IMAGE_MACHINE]  = "machine",
         [IMAGE_PORTABLE] = "portable",
-        [IMAGE_SYSEXT]   = "extension",
+        [IMAGE_SYSEXT]   = "sysext",
         [IMAGE_CONFEXT]  = "confext",
 };
 
index fc73f01cc2ddbc3090fce20ab53e51356af09281..5a48dd5cbd0cad5d333929c7220151061dfc2e6c 100755 (executable)
@@ -461,7 +461,7 @@ touch /run/machines/a.raw /run/portables/b.raw /run/extensions/c.raw
 systemd-dissect --discover --json=short >/tmp/discover.json
 grep -q -F '{"name":"a","type":"raw","class":"machine","ro":false,"path":"/run/machines/a.raw"' /tmp/discover.json
 grep -q -F '{"name":"b","type":"raw","class":"portable","ro":false,"path":"/run/portables/b.raw"' /tmp/discover.json
-grep -q -F '{"name":"c","type":"raw","class":"extension","ro":false,"path":"/run/extensions/c.raw"' /tmp/discover.json
+grep -q -F '{"name":"c","type":"raw","class":"sysext","ro":false,"path":"/run/extensions/c.raw"' /tmp/discover.json
 rm /tmp/discover.json /run/machines/a.raw /run/portables/b.raw /run/extensions/c.raw
 
 # Check that the /sbin/mount.ddi helper works