Skip to content

Commit

Permalink
fix: Mount atomfs molecule with overlay filesystem with xino=on
Browse files Browse the repository at this point in the history
Without xino=on you can end up with duplicate inodes numbers in the
same overlayfs mount.

Signed-off-by: Scott Moser <smoser@brickies.net>
  • Loading branch information
smoser committed Aug 30, 2023
1 parent f6001ec commit 22a2ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/atomfs/molecule.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (m Molecule) overlayArgs(dest string) (string, error) {

// Note that in overlayfs, the first thing is the top most layer in the
// overlay.
mntOpts := "index=off,lowerdir=" + strings.Join(dirs, ":")
mntOpts := "index=off,xino=on,lowerdir=" + strings.Join(dirs, ":")
return mntOpts, nil
}

Expand Down

0 comments on commit 22a2ab4

Please sign in to comment.