From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH rdma-core] suse: switch fully to the new udev mechanism Date: Mon, 28 Aug 2017 09:31:46 -0600 Message-ID: <20170828153146.GC7867@obsidianresearch.com> References: <20170827214704.GC14542@obsidianresearch.com> <71835edf-cb2a-d4f8-627e-0f60ee772fb7@suse.de> <20170828151609.GA7867@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Nicolas Morey-Chaisemartin Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org On Mon, Aug 28, 2017 at 05:23:25PM +0200, Nicolas Morey-Chaisemartin wrote: > Le 28/08/2017 ?? 17:16, Jason Gunthorpe a ??crit??: > > On Mon, Aug 28, 2017 at 05:05:33PM +0200, Nicolas Morey-Chaisemartin wrote: > > > >> -sed 's%/usr/libexec%/usr/lib%g' redhat/rdma.modules-setup.sh > %{buildroot}%{dracutlibdir}/modules.d/05rdma/module-setup.sh > >> -chmod 0755 %{buildroot}%{dracutlibdir}/modules.d/05rdma/module-setup.sh > > You probably still need something dracut related. > > > > At a minimum you have to address the problem we saw in Debian: mlx5 > > and mlx4 need to have their rdma modules include in the initrd if > > their core modules are included. (eg anything request_module'd from > > the initrd must be present) > > > > You may need to do more if you intend to support boot over ipoib, srp, > > nfs-rdma, etc - I think the RH scripts aim to support. > These were in your mail so I assumed they could be dropped :) > I'll keep the dracut stuff then. I was not careful about what I quoted.. Just stuff in that overall area. The existing dracut script seems to assume other things, so you may need a new dracut script. If it is totally general then it can live in kernel-boot.. You should also consider if you need the udev triggers, I don't know what suse policy is. Look in debian/rdma-core.postinst and others. Adding them allows the udev rules to trigger on package install and makes everything start working without a reboot. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html