Better management of chainloader

This commit is contained in:
Laurent Vivier 2008-02-10 01:36:39 +00:00
parent d4719723dc
commit 1ff43d1924

View File

@ -518,7 +518,7 @@ static int8_t *set_config(emile_config *config, int drive)
ret = emile_scsi_create_container(fd,
&unit_id,
container,
1);
2);
close(fd);
if (ret == -1)
{
@ -547,8 +547,7 @@ static int8_t *set_config(emile_config *config, int drive)
free(chainloader);
}
}
if (!emile_config_get(config, CONFIG_KERNEL, &kernel_path))
else if (!emile_config_get(config, CONFIG_KERNEL, &kernel_path))
{
ret = emile_config_get(config, CONFIG_KERNEL_MAP,
&kernel_map_path);