[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New sparc64 installation images - 2016-02-24



On Thu, Feb 25, 2016 at 8:18 PM, Bryce <philip.copeland@oracle.com> wrote:
> Oh, I remember hitting this. I wrote this to get around it.
>
> [root@ca-qasparc10 rules.d]# pwd
> /lib/udev/rules.d
> [root@ca-qasparc10 rules.d]# cat 10-sunv.rules
> # Theory
> # Linux under solaris's ldm exposes a pile of /devices/channel-devices/v*
> # devices. The drivers should not be reloaded as that would likely
> # crash the system.
> # If the vio subsystem exists, we check for an environment var (sunv_ran)
> # if it doesn't exist or does not have the value '1' then we look for
> # a glob match for each driver,.. should we find one we set sunv_ran to
> # '1' permently using ':=' and load the associated module
> #
>
> SUBSYSTEM!="vio", ENV{sunv_ran}!="1", GOTO="vio_end"
> DEVPATH=="/devices/channel-devices/vnet-*", ENV{sunv_ran}:="1",
> RUN+="/sbin/modprobe -b sunvnet"
> DEVPATH=="/devices/channel-devices/vdc-*", ENV{sunv_ran}:="1",
> RUN+="/sbin/modprobe -b sunvdc"
> LABEL="vio_end"

I believe we need to write a patch for virt-what as well, having sysfs
information from /devices/channel-devices/v*
I just don't know how to implement it better, a simple bash check for
directory " -d /devices/channel-devices/v* " or something
particular...
Any thoughts are welcome.

Thanks.


Reply to: