# HG changeset patch # User nkeynes # Date 1283254718 -36000 # Node ID 2fbf712e53f021e30846229b4e1233837cbc1b5a # Parent 174fa8e137b6e9d4792ce5b6b6707d26d898c0bb Remove call to iso_write_opts_set_system_area and just write the bootstrap area out manually - apparently this function was not present in earlier versions --- a/src/drivers/cdrom/isofs.c Sat Jul 31 11:16:44 2010 +1000 +++ b/src/drivers/cdrom/isofs.c Tue Aug 31 21:38:38 2010 +1000 @@ -174,7 +174,6 @@ } iso_write_opts_set_appendable(opts,0); iso_write_opts_set_ms_block(opts, start_sector); - iso_write_opts_set_system_area(opts, (char *)bootstrap, 0, 0); status = iso_image_create_burn_source(image, opts, &burn); iso_write_opts_free(opts); @@ -197,6 +196,7 @@ int fd = file_sector_source_get_fd(source); source->size = expect; lseek( fd, 0, SEEK_SET ); + write( fd, bootstrap, 32768 ); for( cdrom_count_t count = 0; count < expect; count++ ) { if( burn->read == NULL ) { status = burn->read_xt(burn, buf, 2048); @@ -212,7 +212,9 @@ source = NULL; break; } - write( fd, buf, 2048 ); + /* Discard first 16 sectors, replaced with the bootstrap */ + if( count >= (32768/2048) ) + write( fd, buf, 2048 ); } burn->free_data(burn); free(burn);