Create Btrfs snapshots as read-only (#251).

This commit is contained in:
Dan Helfman 2024-11-28 22:18:44 -08:00
parent 3f901c0a52
commit d4a02f73b5

View File

@ -134,6 +134,7 @@ def snapshot_subvolume(btrfs_command, subvolume_path, snapshot_path): # pragma:
btrfs_command,
'subvolume',
'snapshot',
'-r', # Read-only,
subvolume_path,
snapshot_path,
),