-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot remount /etc while rebuilding with etc.overlay
enabled
#303262
Comments
To be mentioned that when |
@nikstur this happens for me also when I have anything mounted on top of /etc. This reproduces it: diff --git a/nixos/tests/activation/etc-overlay-mutable.nix b/nixos/tests/activation/etc-overlay-mutable.nix
index 087c06408a71..5b150c61b08f 100644
--- a/nixos/tests/activation/etc-overlay-mutable.nix
+++ b/nixos/tests/activation/etc-overlay-mutable.nix
@@ -25,6 +25,9 @@
machine.succeed("/run/current-system/bin/switch-to-configuration test")
with subtest("switching to a new generation"):
+ machine.succeed("mkdir /etc/mountpoint")
+ machine.succeed("mount -t tmpfs tmpfs /etc/mountpoint")
+
machine.fail("stat /etc/newgen")
machine.succeed("echo -n 'mutable' > /etc/mutable") |
Still experiencing
|
|
Can you provide kernel logs with |
I haven't seen any kernel log related to this, and it's hard to reproduce. I'll stay in this nixpkgs revision for weeks to see if I can reproduce it.
https://pb.nyaw.xyz/on-toucan.txt Maybe? related #333999 |
FWIW I set |
@nikstur I don't think there will be any logs if the kernel returns -EBUSY on the mount syscall. I think mount only prints this for filesystems that have custom error logs. |
@oluceps can you run |
Here's the log, |
Interesting. This looks different than expected. I would have expected a mount system call, but it seemed to have failed in a different syscall. |
Describe the bug
Cannot remount /etc while rebuilding with
etc.overlay
enabled.This issue does not always appear.
May related:
#270727
#291398
Steps To Reproduce
kernel log:
Expected behavior
/etc
successfully mounted and switch complete.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: