Dangling symlinks for /etc/services, /etc/hosts and other files should be ignored at sandbox setup time #893

Open
opened 2025-06-30 00:06:31 +00:00 by raito · 0 comments
Owner

Describe the bug

In disaster recovery scenarios, nixos-enter will chroot into the target system and running Lix from there may have to deal with dangling symlinks.

Lix does not ignore these dangling symlinks and will abort the build.

Steps To Reproduce

  1. nixos-enter to workaround #892
  2. Run a nix build.
  3. See error

Expected behavior

Lix should warn on the dangling symlinks and ignore them.

nix --version output

≤ 2.94.0-dev 286aa409b2.

Additional context

This came up in recovery attempts, reported by @delroth.

## Describe the bug In disaster recovery scenarios, `nixos-enter` will chroot into the target system and running Lix from there may have to deal with dangling symlinks. Lix does not ignore these dangling symlinks and will abort the build. ## Steps To Reproduce 1. `nixos-enter` to workaround #892 2. Run a nix build. 3. See error ## Expected behavior Lix should warn on the dangling symlinks and ignore them. ## `nix --version` output ≤ 2.94.0-dev 286aa409b24e. ## Additional context This came up in recovery attempts, reported by @delroth.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#893
No description provided.