Implemented support for eltorito on MS discs

This commit is contained in:
Mario Danic
2007-09-01 20:35:53 +00:00
parent 48e8713fef
commit d4eed9925d
20 changed files with 842 additions and 299 deletions

View File

@ -119,10 +119,14 @@ int main(int argc, char **argv)
if (!img) {
err(1, "boot image patch is not valid");
}
bootimg = iso_volume_create_boot_catalog(volume, img, ELTORITO_NO_EMUL,
bootimg = iso_volume_set_boot_image(volume, img, ELTORITO_NO_EMUL,
boot, "boot.cat");
el_torito_set_load_size(bootimg, 4);
el_torito_set_write_boot_info(bootimg);
el_torito_patch_isolinux_image(bootimg);
/* Or just this for hidden img
* iso_volume_set_boot_image_hidden(volume, boot_img, ELTORITO_NO_EMUL);
*/
}
volset = iso_volset_new( volume, "VOLSETID" );
@ -138,8 +142,8 @@ int main(int argc, char **argv)
memset(&opts, 0, sizeof(struct ecma119_source_opts));
opts.level = level;
opts.flags = flags;
opts.relaxed_constraints = 0;//constraints;
opts.input_charset = NULL;//"UTF-8";
opts.relaxed_constraints = 0;
opts.input_charset = NULL;
opts.ouput_charset = "UTF-8";
src = iso_source_new_ecma119(volset, &opts);