Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1231705 > unrolled thread

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

Started byRussell Coker <russell@coker.com.au>
First post2025-02-04 09:20 +0100
Last post2025-02-04 10:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1095134: udev: please add support for /dev/megaraid_sas_ioctl_node Russell Coker <russell@coker.com.au> - 2025-02-04 09:20 +0100
    Bug#1095134: udev: please add support for /dev/megaraid_sas_ioctl_node Luca Boccassi <bluca@debian.org> - 2025-02-04 10:30 +0100

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

FromRussell Coker <russell@coker.com.au>
Date2025-02-04 09:20 +0100
SubjectBug#1095134: udev: please add support for /dev/megaraid_sas_ioctl_node
Message-ID<Kcmk1-ehEH-5@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1231710

FromLuca Boccassi <bluca@debian.org>
Date2025-02-04 10:30 +0100
Message-ID<KcnpL-eiov-1@gated-at.bofh.it>
In reply to#1231705
Control: tags -1 upstream
Control: close -1

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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web