Skip to content

Commit

Permalink
disk_util: Mount btrfs fs with rescue= option
Browse files Browse the repository at this point in the history
It looks like 'norecovery' is deprecated and has been removed in the v6.8-rc1
kernel. Replace it with 'rescue=nologreplay', which is a replacement
implemented since v5.9. The standalone 'nologreplay' option is also deprecated.

Signed-off-by: Jeremi Piotrowski <[email protected]>
  • Loading branch information
jepio committed Mar 5, 2024
1 parent a2aa30f commit 18265de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_library/disk_util
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def Mount(options):
if options.read_only or ('verity' in mount.get('features', []) and not options.writable_verity):
mount_opts.append('ro')
if mount.get('fs_type', None) == 'btrfs':
mount_opts.append('norecovery')
mount_opts.append('rescue=nologreplay')

if mount.get('fs_subvolume', None):
mount_opts.append('subvol=%s' % mount['fs_subvolume'])
Expand Down

0 comments on commit 18265de

Please sign in to comment.