discover: Allow for already-mounted devices
[petitboot] / test / parser / utils.c
index f6939828337cfde8aa3ce31b8f1687cea2542e34..7af4df7397970e6b97c0794b64cb6f647434cab6 100644 (file)
@@ -61,6 +61,7 @@ struct discover_device *test_create_device(struct parser_test *test,
        dev->device->id = talloc_strdup(dev, name);
        dev->device_path = talloc_asprintf(dev, "/dev/%s", name);
        dev->mount_path = talloc_asprintf(dev, "/test/mount/%s", name);
+       dev->mounted = true;
 
        return dev;
 }