<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 15, 2016 at 9:42 AM, Garland Key <span dir="ltr"><<a href="mailto:david.garland.key@gmail.com" target="_blank">david.garland.key@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I've figured everything out except for how to run the script during<br>
boot.  Adding, "BINARIES="/sbin/vfio-pci-override-vga.sh /usr/bin/find<br>
/usr/bin/dirname" to mkinitcpio isn't working.<br>
<br>
To my understanding, in Dracut, I'm supposed to add these files so<br>
that they're called and able to run before they would otherwise be<br>
loaded with the kernel.  Whatever the purpose, I was able to get this<br>
whole process to work on Fedora 23.  I'm not sure how to achieve this<br>
with mkinitcpio on Arch.<br>
<br>
If someone could just tell me how to enable this custom script and the<br>
two binaries find and dirname via mkinitcpio, it would solve the<br>
problem.  This is the same problem I was having before.  The wiki and<br>
google searches haven't been helpful at this point.  Maybe I just<br>
don't know enough about it to google the right phrases - not sure.<br></blockquote><div><br></div><div>Hi Garland,<br><br></div><div>Though I had no identical GPUs, but I think I understand your issue. In my Arch Linux setup I only put this MODULES line in /etc/mkinitcpio.conf:<br>MODULES="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"<br><br></div><div>I got a feeling that you need to put the find and dirname under BINARIES but vfio-pci-override-vga.sh as a custom HOOKS script. I've never done this before, so hopefully this forum link will be any use for your case [1] (just the way mkinitcpio HOOOKS work)<br></div><div><br>[1] <a href="https://bbs.archlinux.org/viewtopic.php?id=208276">https://bbs.archlinux.org/viewtopic.php?id=208276</a> <br><br></div><div>Best regards,<br></div><div>Okky Hendriansyah<br></div></div></div></div>