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