Load IPMI modules before chroot in CoreOS image

Currently we try to modprobe IPMI related modules in coreos image
inside the chroot. It won't work, so we need to load them before
we get in it.

Change-Id: Ia0d912da8fc14aafcb6f84e9cc9e00c0408228e4
Closes-Bug: #1643353
This commit is contained in:
OctopusZhang 2016-11-21 01:54:03 +08:00 committed by octopuszhang
parent f9236682f7
commit 0a7735d1ba
2 changed files with 7 additions and 0 deletions

View File

@ -215,6 +215,9 @@ coreos:
Requires=opt-ironic\x2dpython\x2dagent-run-log.mount
[Service]
ExecStartPre=-/usr/sbin/modprobe ipmi_msghandler
ExecStartPre=-/usr/sbin/modprobe ipmi_devintf
ExecStartPre=-/usr/sbin/modprobe ipmi_si
ExecStart=/usr/bin/chroot /opt/ironic-python-agent \
/usr/local/bin/ironic-python-agent
Restart=always

View File

@ -0,0 +1,4 @@
---
fixes:
- Fixes detection of IPMI address in the CoreOS-based images
by loading IPMI modules before going into chroot.