Merge "Get the correct fstab entry if there are more than one" into main

This commit is contained in:
Kelvin Zhang 2024-04-25 16:48:37 +00:00 committed by Gerrit Code Review
commit 41d3e8d1e5

View file

@ -198,7 +198,8 @@ Status cp_commitChanges() {
// Walk mounted file systems
for (const auto& mount_rec : mounts) {
const auto fstab_rec = GetEntryForMountPoint(&fstab_default, mount_rec.mount_point);
const auto fstab_rec =
GetEntryForMountPoint(&fstab_default, mount_rec.mount_point, mount_rec.fs_type);
if (!fstab_rec) continue;
if (fstab_rec->fs_mgr_flags.checkpoint_fs) {