Skip to content

After upgrading from 0.10.0 to 0.12.1 the symlinks (config.yaml, hooks.yaml) in /etc/nvidia-mig/manager are incorrectly removed #219

@KeithMnemonic

Description

@KeithMnemonic

It seems after implementing this PR, #155, an upgrade from 0.10.0 is broken. Below is the output of

sudo rpm --upgrade -vv ./nvidia-mig-manager-0.12.1-1.x86_64.rpm

+ maybe_remove_hooks_symlink
++ readlink -f /etc/nvidia-mig-manager/hooks.yaml
+ local target=/etc/nvidia-mig-manager/hooks-default.yaml
+ '[' /etc/nvidia-mig-manager/hooks-default.yaml = /etc/nvidia-mig-manager/hooks-minimal.yaml ']'
+ '[' /etc/nvidia-mig-manager/hooks-default.yaml = /etc/nvidia-mig-manager/hooks-default.yaml ']'
+ rm -rf /etc/nvidia-mig-manager/hooks.yaml
+ maybe_remove_config_symlink
++ readlink -f /etc/nvidia-mig-manager/config.yaml
+ local target=/etc/nvidia-mig-manager/config-default.yaml
+ '[' /etc/nvidia-mig-manager/config-default.yaml = /etc/nvidia-mig-manager/config-default.yaml ']'
+ rm -rf /etc/nvidia-mig-manager/config.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions