Fix ironic-python-agent image not loading vfat mod

Closes-Bug: 1589450
Load the vfat driver as a Pre Exec action for systemd before starting
ironic-python-agent in order to allow reading of parameters.txt file
required for the ironic-python-agent to find its configuration.

Change-Id: Ibf74dd1b2678ea76e0676711a7aa5ba6b88d5421
This commit is contained in:
Bruno Cornec 2016-10-28 19:38:50 +02:00
parent 38dcce0fc4
commit 2854f4063b

View File

@ -3,6 +3,7 @@ Description=Ironic Python Agent
After=network-online.target After=network-online.target
[Service] [Service]
ExecStartPre=/usr/sbin/modprobe vfat
ExecStart=/usr/local/bin/ironic-python-agent ExecStart=/usr/local/bin/ironic-python-agent
Restart=always Restart=always
RestartSec=30s RestartSec=30s