Skip to content

Commit

Permalink
Merge pull request #122 from alexlarsson/silent-mount
Browse files Browse the repository at this point in the history
mount: Pass MS_SILENT on first pass trying to mount overlayfs
  • Loading branch information
alexlarsson authored Apr 27, 2023
2 parents 9ba8f7b + 245fda2 commit 5c2e5f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcomposefs/lcfs-mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ static int lcfs_mount_erofs_ovl(struct lcfs_mount_state_s *state,
mount_flags = 0;
if (readonly)
mount_flags |= MS_RDONLY;
if (lowerdir_alt == 0)
mount_flags |= MS_SILENT;

res = mount("overlay", state->mountpoint, "overlay", mount_flags,
overlay_options);
Expand Down

0 comments on commit 5c2e5f7

Please sign in to comment.