summaryrefslogtreecommitdiff
path: root/src/shared/dissect-image.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-03-07 11:24:00 +0100
committerLennart Poettering <lennart@poettering.net>2023-03-09 21:56:42 +0100
commit034ebc47a280e6f0f1f051ee15099b6e7fe20e9a (patch)
treef006b2ca880bedd5aa83d8927750d2c1217155c0 /src/shared/dissect-image.c
parent4e6d305ae2c9d6d24815c507ed9f143079a185e3 (diff)
downloadsystemd-034ebc47a280e6f0f1f051ee15099b6e7fe20e9a.tar.gz
mountpoint-util: move 'norecovery' detection into its own helper call
And let's also ask the kernel explicitly for support.
Diffstat (limited to 'src/shared/dissect-image.c')
-rw-r--r--src/shared/dissect-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c
index fc27c50d44..59adb32426 100644
--- a/src/shared/dissect-image.c
+++ b/src/shared/dissect-image.c
@@ -1567,7 +1567,7 @@ int partition_pick_mount_options(
* access that actually modifies stuff work on such image files. Or to say this differently: if
* people want their file systems to be fixed up they should just open them in writable mode, where
* all these problems don't exist. */
- if (!rw && STRPTR_IN_SET(fstype, "ext3", "ext4", "xfs", "btrfs"))
+ if (!rw && fstype && fstype_can_norecovery(fstype))
if (!strextend_with_separator(&options, ",", "norecovery"))
return -ENOMEM;