[openstack-dev] [ironic-pyhon-agent][DIB] IPA failed to start on Ubuntu because of modprobe path

Moshe Levi moshele at mellanox.com
Sat Jan 21 10:31:08 UTC 2017


Hi,
This commit https://github.com/openstack/diskimage-builder/commit/2854f4063bd2a6dcdb6fa5fab93aa56857e47b59 
Added ExecStartPre=/usr/sbin/modprobe vfat to the ironic-python-agent systemd script 
The problem is that modprobe location in Ubuntu / sbin/modprobe (the /usr/sbin/modprobe vfat works for redhat)
I have opened this bug in Launchpad https://bugs.launchpad.net/diskimage-builder/+bug/1658297  
This break IPA element when building with Ubunut OS.
Is there conditional in systemd scripts like 
If os == Redhat then
ExecStartPre=/usr/sbin/modprobe vfat
Elseif os == Ubuntu  then
ExecStartPre=/sbin/modprobe vfat

What is the best way to fix this? 

Thanks,
Moshe Levi





More information about the OpenStack-dev mailing list