Reproduced the problem on noble, with a live iso boot:

mdevctl:
  Installed: 1.3.0-1ubuntu2
  Candidate: 1.3.0-1ubuntu2
  Version table:
 *** 1.3.0-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status


execsnoop showing the failed execution of mdevctl, wrong path and exit code -2:

21:13:28 sh               7110    7109      0 /bin/sh -c { /usr/sbin/mdevctl 
start-parent-mdevs 0000:00:02.0 2>&3 | logger -t mdevctl; } 3>&1 1>&2 | logger 
-t mdevctl -p 2
21:13:28 logger           7112    7110      0 /usr/bin/logger -t mdevctl -p 2
21:13:28 sh               7113    7111     -2 /usr/sbin/mdevctl 
start-parent-mdevs 0000:00:02.0
21:13:28 logger           7114    7111      0 /usr/bin/logger -t mdevctl


logs showing mdevctl wasn't found:
Nov 21 21:13:28 ubuntu kernel: i915 0000:00:02.0: Direct firmware load for 
i915/gvt/vid_0x8086_did_0x5916_rid_0x02.golden_hw_state failed with error -2
Nov 21 21:13:28 ubuntu kernel: i915 0000:00:02.0: MDEV: Registered
Nov 21 21:13:28 ubuntu mdevctl[7112]: /bin/sh: 1: /usr/sbin/mdevctl: not found


Updating to proposed:
mdevctl:
  Installed: 1.3.0-1ubuntu2.1
  Candidate: 1.3.0-1ubuntu2.1
  Version table:
 *** 1.3.0-1ubuntu2.1 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     1.3.0-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages


dmesg without errors:
Nov 21 21:17:01 ubuntu kernel: i915 0000:00:02.0: Direct firmware load for 
i915/gvt/vid_0x8086_did_0x5916_rid_0x02.golden_hw_state failed with error -2
Nov 21 21:17:01 ubuntu kernel: i915 0000:00:02.0: MDEV: Registered
Nov 21 21:17:01 ubuntu kernel: intel_vgpu_mdev 
97e25a6f-fea7-485a-bc82-3783cd9d5d17: Adding to iommu group 12


execsnoop happy, and note the /usr/bin path this time:
21:17:01 sh               7830    7828      0 /bin/sh -c { /usr/bin/mdevctl 
start-parent-mdevs 0000:00:02.0 2>&3 | logger -t mdevctl; } 3>&1 1>&2 | logger 
-t mdevctl -p 2
21:17:01 logger           7832    7830      0 /usr/bin/logger -t mdevctl -p 2
21:17:01 mdevctl          7833    7831      0 /usr/bin/mdevctl 
start-parent-mdevs 0000:00:02.0
21:17:01 logger           7834    7831      0 /usr/bin/logger -t mdevctl


Noble verification succeeded.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2121264

Title:
  udev rules reference `/usr/sbin/mdevctl` but binary is installed in
  `/usr/bin` on Ubuntu 24.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdevctl/+bug/2121264/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to