discover-image: update Image.read_only flag in image_read_only()

Otherwise, ReadOnly DBus property in org.freedesktop.machine1.Image or
org.freedesktop.portable1.Image will not be updated by MarkReadOnly DBus
method.
This commit is contained in:
Yu Watanabe
2024-05-20 01:03:14 +09:00
parent d4d6a9e4ae
commit 608c321f23
+1
View File
@@ -1287,6 +1287,7 @@ int image_read_only(Image *i, bool b) {
return -EOPNOTSUPP;
}
i->read_only = b;
return 0;
}