sysext: change the table lookup string to be more verbose
This commit is contained in:
+1
-1
@@ -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",
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user