Skip to content

Driver validation doesn't succeed because /usr/bin is a symlink #1357

@wokalski

Description

@wokalski

On my OS (NixOS) /usr/bin is a symlink to /run/current-system/sw/bin

[root@nvidia-operator-validator-9nk4h /]# ls -lah /host/usr/bin
lrwxrwxrwx 1 root root 26 Feb 16 13:09 /host/usr/bin -> /run/current-system/sw/bin

This means that the validation will always fail here:
https://github.com/NVIDIA/gpu-operator/blob/e9b7ec16203987508eddc048fe82a4c44d3b392a/validator/main.go#L703C1-L704C1

If I'm not mistaken we should simply syscal.chroot there but I'm not sure if the following symlink creation would still work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue/PR to expose/discuss/fix a bugneeds-triageissue or PR has not been assigned a priority-px label

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions