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

Luca Boccassi bluca at debian.org
Tue Feb 4 09:19:17 GMT 2025


Control: tags -1 upstream
Control: close -1

On Tue, 04 Feb 2025 19:09:56 +1100 Russell Coker <russell at coker.com.au>
wrote:
> 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

Sorry, but in "megaraid_sas_ioctl_node", I just about know one or two
of those words. I really don't know what this is and it means to enable
it, and it's not something to do downstream, so please file an upstream
RFE with more details and the use case. Thanks.



More information about the Pkg-systemd-maintainers mailing list