correctly set second level information

This commit is contained in:
Laurent Vivier 2006-10-28 22:35:44 +00:00
parent 2f1d2b4667
commit c44daf1cd4

View File

@ -724,9 +724,17 @@ int main(int argc, char **argv)
/* set second configuration */
ret = emile_first_get_param(fd, &drive, &second, &size);
if (ret != EEMILE_UNKNOWN_FIRST)
ret = emile_second_set_param(fd, map_info,
append_string, ramdisk_path);
if (ret == EEMILE_UNKNOWN_FIRST)
lseek(fd, 0, SEEK_SET);
ret = emile_second_set_param(fd, map_info,
append_string, ramdisk_path);
if (ret != 0)
{
fprintf(stderr,
"ERROR: cannot set \"%s\" information in \"%s\".\n",
kernel_path, map_path);
return 18;
}
}
close(fd);