sysext: change the table lookup string to be more verbose

This commit is contained in:
Maanya Goenka
2023-07-14 16:50:33 +00:00
parent c62d616d8c
commit 8a324d1648
2 changed files with 2 additions and 2 deletions
+1 -1
View 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",
};
+1 -1
View File
@@ -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