summaryrefslogtreecommitdiffstats
path: root/src/shared/discover-image.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-05-17 22:10:42 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-05-19 18:03:14 +0200
commit608c321f232105966e509265c13ae061c03b9f77 (patch)
treee97ef9376ebbceec5c78f60e604815f8f26f0bcb /src/shared/discover-image.c
parentMerge pull request #32917 from YHNdnzj/ptyfwd-cleanup (diff)
downloadsystemd-608c321f232105966e509265c13ae061c03b9f77.tar.xz
systemd-608c321f232105966e509265c13ae061c03b9f77.zip
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.
Diffstat (limited to '')
-rw-r--r--src/shared/discover-image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/discover-image.c b/src/shared/discover-image.c
index 09bad987ad..8467815efc 100644
--- a/src/shared/discover-image.c
+++ b/src/shared/discover-image.c
@@ -1287,6 +1287,7 @@ int image_read_only(Image *i, bool b) {
return -EOPNOTSUPP;
}
+ i->read_only = b;
return 0;
}