modify install_os error after change pxe rpm to code
Change-Id: I4d1cc2a6a9c17f637a24a475b52973c0cdf9191e( don't merge until I have environment to test it) Signed-off-by: Yao Lu <lu.yao135@zte.com.cn>
This commit is contained in:
parent
04dbf37913
commit
3c4c64b1bb
@ -126,8 +126,7 @@ def install_os(**kwargs):
|
||||
_PIPE = subprocess.PIPE
|
||||
cmd = "/usr/bin/pxe_os_install /var/log/ironic/%s.json && \
|
||||
chmod 755 /tftpboot -R && \
|
||||
chmod 755 /home/install_share -R && \
|
||||
chmod 755 /linuxinstall -R" % kwargs['dhcp_mac']
|
||||
chmod 755 /home/install_share -R" % kwargs['dhcp_mac']
|
||||
try:
|
||||
obj = subprocess.Popen(cmd, stdin=_PIPE, stdout=_PIPE,
|
||||
stderr=_PIPE, shell=True, cwd=None, env=None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user