Skip to content

Commit

Permalink
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 f627c4d commit 53262f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update_engine/postinstall_runner_action.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void PostinstallRunnerAction::PerformAction() {
temp_rootfs_dir_.c_str(),
"btrfs",
mountflags,
"norecovery");
"rescue=nologreplay");
if (errno == EEXIST) {
/* When trying to mount an identical btrfs image twice because the old
* and new partition are identical, the kernel refuses because same UUIDs
Expand Down

0 comments on commit 53262f6

Please sign in to comment.