• Olaf Hering's avatar
    pygrub: always append --args · d284db7e
    Olaf Hering authored
    If a bootloader entry in menu.lst has no additional kernel command line
    options listed and the domU.cfg has 'bootargs="--args=something"' the
    additional arguments from the config file are not passed to the kernel.
    The reason for that incorrect behaviour is that run_grub appends arg
    only if the parsed config file has arguments listed.
    Fix this by appending args from image section and the config file separatly.
    To avoid adding to a NoneType initialize grubcfg['args'] to an empty string.
    This does not change behaviour but simplifies the code which appends the
    Signed-off-by: default avatarOlaf Hering <olaf@aepfle.de>
    Acked-by: default avatarIan Campbell <ian.campbell@citrix.com>
    Committed-by: default avatarIan Campbell <ian.campbell@citrix.com>
Last commit
Last update
examples Loading commit data...
src Loading commit data...
Makefile Loading commit data...
README Loading commit data...
setup.py Loading commit data...