diff --git a/mounts/org.osbuild.btrfs b/mounts/org.osbuild.btrfs index d2387c43..987d184c 100755 --- a/mounts/org.osbuild.btrfs +++ b/mounts/org.osbuild.btrfs @@ -32,6 +32,11 @@ SCHEMA_2 = """ "description": "mount the source as a readonly device", "type": "boolean", "default": false + }, + "norecovery": { + "description": "Don't load the journal on mounting", + "type": "boolean", + "default": false } } } diff --git a/mounts/org.osbuild.ext4 b/mounts/org.osbuild.ext4 index 4b2180b6..74eb58bf 100755 --- a/mounts/org.osbuild.ext4 +++ b/mounts/org.osbuild.ext4 @@ -32,6 +32,11 @@ SCHEMA_2 = """ "description": "mount the source as a readonly device", "type": "boolean", "default": false + }, + "norecovery": { + "description": "Don't load the journal on mounting", + "type": "boolean", + "default": false } } } diff --git a/mounts/org.osbuild.xfs b/mounts/org.osbuild.xfs index 33446efb..1e294325 100755 --- a/mounts/org.osbuild.xfs +++ b/mounts/org.osbuild.xfs @@ -32,6 +32,11 @@ SCHEMA_2 = """ "description": "mount the source as a readonly device", "type": "boolean", "default": false + }, + "norecovery": { + "description": "Don't load the journal on mounting", + "type": "boolean", + "default": false } } } diff --git a/osbuild/mounts.py b/osbuild/mounts.py index 6da9d63d..1d3cb5fd 100644 --- a/osbuild/mounts.py +++ b/osbuild/mounts.py @@ -129,6 +129,8 @@ class FileSystemMountService(MountService): opts = [] if options.get("readonly"): opts.append("ro") + if options.get("norecovery"): + opts.append("norecovery") if "uid" in options: opts.append(f"uid={options['uid']}") if "gid" in options: