Skip to content

RPM: symlinks in /etc/nvidia-mig-manager are not recreated when doing a dnf update or reinstall #154

@KeithMnemonic

Description

@KeithMnemonic

When trying to update or reinstall the nvidia-mig-manager rpm package, the two symlinks in /etc/nvidia-mig-manager are not recreated.

sudo dnf install nvidia-mig-manager
Last metadata expiration check: 1:20:59 ago on Thu 05 Dec 2024 05:16:44 AM PST.
Dependencies resolved.
===================================================================================================================================================================================================================================================================================
 Package                                                                 Architecture                                                Version                                                         Repository                                                               Size
===================================================================================================================================================================================================================================================================================
Installing:
 nvidia-mig-manager                                                      x86_64                                                      0.10.0-1                                                        nvidia-dgx-9-local                                                      2.1 M

Transaction Summary
===================================================================================================================================================================================================================================================================================
Install  1 Package

Total size: 2.1 M
Installed size: 7.7 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                           1/1
  Installing       : nvidia-mig-manager-0.10.0-1.x86_64                                                                                                                                                                                                                        1/1
  Running scriptlet: nvidia-mig-manager-0.10.0-1.x86_64                                                                                                                                                                                                                        1/1
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-mig-manager.service → /usr/lib/systemd/system/nvidia-mig-manager.service.
Created symlink /etc/systemd/system/nvidia-gpu-reset.target.wants/nvidia-mig-manager.service → /usr/lib/systemd/system/nvidia-mig-manager.service.

  Verifying        : nvidia-mig-manager-0.10.0-1.x86_64                                                                                                                                                                                                                        1/1

Installed:
  nvidia-mig-manager-0.10.0-1.x86_64

Complete!


ls -al /etc/nvidia-mig-manager/
total 44
drwxr-xr-x.   2 root root  172 Dec  5 06:37 .
drwxr-xr-x. 120 root root 8192 Dec  5 06:37 ..
-rw-r--r--.   1 root root 6564 Oct 25 11:23 config-default.yaml
lrwxrwxrwx.   1 root root   19 Dec  5 06:37 config.yaml -> config-default.yaml
-rw-r--r--.   1 root root  631 Oct 25 11:23 hooks-default.yaml
-rw-r--r--.   1 root root  191 Oct 25 11:23 hooks-minimal.yaml
-rw-r--r--.   1 root root 2629 Oct 25 11:23 hooks.sh
lrwxrwxrwx.   1 root root   18 Dec  5 06:37 hooks.yaml -> hooks-minimal.yaml
-rwxr-xr-x.   1 root root 2499 Oct 25 11:23 service.sh
-rw-r--r--.   1 root root 4445 Oct 25 11:23 utils.sh

 sudo dnf reinstall nvidia-mig-manager
Last metadata expiration check: 1:21:11 ago on Thu 05 Dec 2024 05:16:44 AM PST.
Dependencies resolved.
===================================================================================================================================================================================================================================================================================
 Package                                                                 Architecture                                                Version                                                         Repository                                                               Size
===================================================================================================================================================================================================================================================================================
Reinstalling:
 nvidia-mig-manager                                                      x86_64                                                      0.10.0-1                                                        nvidia-dgx-9-local                                                      2.1 M

Transaction Summary
===================================================================================================================================================================================================================================================================================

Total size: 2.1 M
Installed size: 7.7 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                           1/1
  Reinstalling     : nvidia-mig-manager-0.10.0-1.x86_64                                                                                                                                                                                                                        1/2
  Running scriptlet: nvidia-mig-manager-0.10.0-1.x86_64                                                                                                                                                                                                                        1/2
  Running scriptlet: nvidia-mig-manager-0.10.0-1.x86_64                                                                                                                                                                                                                        2/2
Removed "/etc/systemd/system/multi-user.target.wants/nvidia-mig-manager.service".
Removed "/etc/systemd/system/nvidia-gpu-reset.target.wants/nvidia-mig-manager.service".

  Cleanup          : nvidia-mig-manager-0.10.0-1.x86_64                                                                                                                                                                                                                        2/2
  Running scriptlet: nvidia-mig-manager-0.10.0-1.x86_64                                                                                                                                                                                                                        2/2
  Verifying        : nvidia-mig-manager-0.10.0-1.x86_64                                                                                                                                                                                                                        1/2
  Verifying        : nvidia-mig-manager-0.10.0-1.x86_64                                                                                                                                                                                                                        2/2

Reinstalled:
  nvidia-mig-manager-0.10.0-1.x86_64

Complete!

ls -al /etc/nvidia-mig-manager/
total 44
drwxr-xr-x.   2 root root  135 Dec  5 06:37 .
drwxr-xr-x. 120 root root 8192 Dec  5 06:37 ..
-rw-r--r--.   1 root root 6564 Oct 25 11:23 config-default.yaml
-rw-r--r--.   1 root root  631 Oct 25 11:23 hooks-default.yaml
-rw-r--r--.   1 root root  191 Oct 25 11:23 hooks-minimal.yaml
-rw-r--r--.   1 root root 2629 Oct 25 11:23 hooks.sh
-rwxr-xr-x.   1 root root 2499 Oct 25 11:23 service.sh
-rw-r--r--.   1 root root 4445 Oct 25 11:23 utils.sh

Workaround:

  1. remove nvidia-mig-manager sudo dnf remove nvidia-mig-manager
  2. install fresh sudo dnf install nvidia-mig-manager

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