mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
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. (cherry picked from commit 608c321f232105966e509265c13ae061c03b9f77) (cherry picked from commit c16f4aaf6588238b979bbab74e0327c736eb16f6)
This commit is contained in:
parent
369d7d4083
commit
e268f146d6
@ -1047,6 +1047,7 @@ int image_read_only(Image *i, bool b) {
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
i->read_only = b;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user