-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Merged change into nixpkgs causes problems with /etc/machine-id if it is a bind mount #229
Comments
If using a symlink doesn't cause the issue could we do: systemd.tmpfiles.rules = [
"L /etc/machine-id - - - - /persist/etc/machine-id"
] Or is there an issue like tmpfiles being created at the wrong time at boot compared to when this service runs? Is it possible to make files be symlinks with the nixos impermanence module? It seems the |
…ce trigger The bind mount creation for `/etc/machine-id` by `impermanence` is unintentionally triggering `systemd-machine-id-commit.service`, causing an error. This commit resolves this issue, see: nix-community/impermanence#229. And NixOS/nixpkgs#351151 for details.
…emd-machine-id-commit.service The bind mount creation for `/etc/machine-id` by `impermanence` is unintentionally triggering `systemd-machine-id-commit.service`, causing an error. This commit resolves this issue, see: nix-community/impermanence#229 and NixOS/nixpkgs#351151 for details.
I briefly tried the symlink workaround, but something stomped on it (think when rebooting) and just created a new machine-id file. |
…emd-machine-id-commit.service The bind mount creation for `/etc/machine-id` by `impermanence` is unintentionally triggering `systemd-machine-id-commit.service`, causing an error. This commit resolves this issue, see: nix-community/impermanence#229 and NixOS/nixpkgs#351151 for details.
That was intended as a temporary workaround. Per the discussion: It will work on existing machines, but may cause problems with machines that are created for the first time. Will the /etc/machine-id file be generated without that service? |
…ermanence#229" This reverts commit 80373ea. Fix is now in upstream impermanence.
Please see #242 for a follow-up fix to this issue. |
The service systemd-machine-id-commit.service will now cause problems if /etc/machine-id is configured as a bind mount. It may work if it is a symlink.
On rebuild:
Merged PR: nixpkgs:351151
Some discussion there.
Temporary workaround:
The text was updated successfully, but these errors were encountered: