-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
OverlayFS broken on NixOS Kernel 4.19 and 4.20 #54509
Copy link
Copy link
Closed
Labels
1.severity: blockerThis is preventing another PR or issue from being completedThis is preventing another PR or issue from being completed6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Milestone
Metadata
Metadata
Assignees
Labels
1.severity: blockerThis is preventing another PR or issue from being completedThis is preventing another PR or issue from being completed6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Fields
Give feedbackNo fields configured for issues without a type.
Issue description
When using overlayfs with NixOS and Kernel 4.19 it is not possible to overwrite a file that already exists in the lower directory with new content. Instead if attempted the file appears empty. (See how to reproduce for details).
It seems like the revert of an upstream commit in 4.19 #52942 breaks something fundamentally in overlayfs.
EDIT: Reverting #52942 fixes the behavior. But I'm unable to run the tests as the VM kernel pancis :(
This also affects docker if used with one of the overlay drivers.
Steps to reproduce
Via the test in #54508
or
Manually:
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"and paste theresults.