Skip to content
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

persisting something under /etc breaks the system #244

Open
damscal opened this issue Dec 22, 2024 · 0 comments
Open

persisting something under /etc breaks the system #244

damscal opened this issue Dec 22, 2024 · 0 comments

Comments

@damscal
Copy link

damscal commented Dec 22, 2024

I'm on nixos-unstable.
Whenever I try to persist a directory under /etc, such as with:

environment.persistence = {
    "/persist" = {
      directories = ["/etc/test"];
    };
  };

On nixos-rebuild switch I get:

Error: Failed to restart nixos-activation.service

Caused by:
    Unit nixos-activation.service not found.
restarting sysinit-reactivation.target
the following new units were started: etc-test.mount, libvirtd.service, system-systemd\x2dcoredump.slice
warning: the following units failed: nginx-config-reload.service

The mount of /etc/test is successful, but the system looses internet access.
At shutdown the process hangs for 1min 49s with the message:
A stop job is running for User Manager for UID 1000 (23s / 1min 49s)

The system ultimately fails to reboot with the error:
Failed to start message bus: Failed to open "/etc/dbus-1/session.conf": Permission denied
In addition to a bunch of services failing to start.
I also tried using nixos-rebuild boot with the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant