[packages/ipmitool] do not suggest some crafted script when there are contemporary and generic module loaders

Elan Ruusamäe glen at pld-linux.org
Fri Jul 29 13:10:43 CEST 2016


On 28.07.2016 23:39, Tomasz Pala wrote:
>
> And take a look at this ipmi.init - it creates static device node (in
> non-devfs systems) with RANDOM (not permanently assigned in kernel) major!
>
> if [ ! -c /dev/ipmi0 ] && [ $RETVAL -eq 0 ]; then
> 	major=$(awk '/ ipmidev$/{print $1}' /proc/devices)
> 	/bin/mknod -m 0600 /dev/ipmi0 c $major 0 || RETVAL=1
>
> who knows what device would become available at /dev/ipmi0 at next
> reboot... (unless cleaned in rc.sysinit). This package should be banned,
>
> I'm considering C: ipmi-init somewhere, but I'm not sure where to put it...
you could as well fix the script to always replace /dev/ipmi0 if /dev is 
static

-- 
glen



More information about the pld-devel-en mailing list