test-runner: Use multidevs=remap when mounting rootfs
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 17 Nov 2020 19:01:57 +0000 (11:01 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
This avoid inode collisions when the host has multiple fs to be mapped
to the rootfs on the guest.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
tools/test-runner.c

index 2036b3b..586152c 100755 (executable)
@@ -192,7 +192,8 @@ static char *const qemu_argv[] = {
        "-no-acpi",
        "-no-hpet",
        "-no-reboot",
-       "-fsdev", "local,id=fsdev-root,path=/,readonly,security_model=none",
+       "-fsdev", "local,id=fsdev-root,path=/,readonly,security_model=none,"
+       "multidevs=remap",
        "-device", "virtio-9p-pci,fsdev=fsdev-root,mount_tag=/dev/root",
        "-chardev", "stdio,id=con,mux=on",
        "-serial", "chardev:con",