The python code expects AUTO_SYSLINUXMENU to be a boolean value,
otherwise the logic fails. This fixes the code comparing the value to
"1" which is the value expected by the shell script code, counterpart.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
if syslinux_serial:
cfgfile.write('SERIAL %s\n' % syslinux_serial)
- menu = d.getVar('AUTO_SYSLINUXMENU', True)
+ menu = (d.getVar('AUTO_SYSLINUXMENU', True) == "1")
if menu and syslinux_serial:
cfgfile.write('DEFAULT Graphics console %s\n' % (labels.split()[0]))