Skip to content

install.in: cp -p fails when installing on NFS #13426

@jsoo1

Description

@jsoo1

Describe the bug

When using the standard installer at https://nixos.org/nix/install on NFS with a multi-user install, cp -p dies with the following:

error: removing extended attribute 'system.nfs4_dacl' from '...': Invalid argument

The -p argument preserves extended attrs and acls. Some of them might be incompatible between source and target file systems. Generally we should avoid adding -p since we probably should not care about xattrs or acls on installed artifacts, right?

Steps To Reproduce

With an nfs4 filesystem mounted at the destination for the nix store, run https://nixos.org/nix/install.

Expected behavior

The installer should work on NFS.

Metadata

Attempting to install 2.29.0

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions