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:
@@ -1287,6 +1287,7 @@ int image_read_only(Image *i, bool b) {
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
i->read_only = b;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user