Bug#1095134: udev: please add support for /dev/megaraid_sas_ioctl_node

Russell Coker russell at coker.com.au
Tue Feb 4 08:09:56 GMT 2025


Package: udev
Version: 257.2-3
Severity: normal

The following are 2 options I tried in /etc/udev/rules.d/99mega.rules:
DEVPATH=="/module/megaraid_sas" RUN+="/usr/local/sbin/mega"
DRIVER=="megaraid_sas" RUN+="/usr/local/sbin/mega"

I don't know which of them is preferred but they both work.  Below is the
script I use to create the device node, the restorecon line is needed for
correct SE Linux labelling and won't cause any harm if restorecon isn't
installed or if SE Linux is disabled.

#!/bin/bash
set -e
test -e /sys/kernel/debug/megaraid_sas
grep -o -P '^\d\d\d(?= megaraid_sas_ioctl)' /proc/devices > /dev/null

[[ -e /dev/megaraid_sas_ioctl_node ]] || mknod /dev/megaraid_sas_ioctl_node c `grep -o -P '^\d\d\d(?= megaraid_sas_ioctl)' /proc/devices` 0
[ -x /sbin/restorecon ] && /sbin/restorecon /dev/megaraid_sas_ioctl_node

-- Package-specific info:

-- System Information:
Debian Release: trixie/sid
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.11-amd64 (SMP w/6 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages udev depends on:
ii  libblkid1                   2.40.4-2
ii  libc6                       2.40-6
ii  libkmod2                    33+20240816-2
ii  libsystemd-shared           257.2-3
ii  libudev1                    257.2-3
ii  systemd [systemd-sysusers]  257.2-3

udev recommends no packages.

udev suggests no packages.

Versions of packages udev is related to:
ii  systemd  257.2-3

-- debconf-show failed



More information about the Pkg-systemd-maintainers mailing list