Let -boot_image bin_path= , efi_path= recognize --interval:appended_partition

This commit is contained in:
Thomas Schmitt 2016-01-20 10:41:34 +00:00
parent 8aa558f956
commit 2602552d21
2 changed files with 16 additions and 8 deletions

View File

@ -832,10 +832,14 @@ treatment_patch:;
xorriso->boot_image_bin_path[0] = 0; xorriso->boot_image_bin_path[0] = 0;
xorriso->boot_efi_default= 0; xorriso->boot_efi_default= 0;
} else if(strncmp(treatpt, "bin_path=", 9) == 0) { } else if(strncmp(treatpt, "bin_path=", 9) == 0) {
if(strncmp(treatpt + 9, "--interval:appended_partition_", 30) == 0) {
strcpy(xorriso->boot_image_bin_path, treatpt + 9);
} else {
ret= Xorriso_normalize_img_path(xorriso, xorriso->wdi, treatpt + 9, ret= Xorriso_normalize_img_path(xorriso, xorriso->wdi, treatpt + 9,
xorriso->boot_image_bin_path, 2); xorriso->boot_image_bin_path, 2);
if(ret <= 0) if(ret <= 0)
goto ex; goto ex;
}
xorriso->keep_boot_image= 0; xorriso->keep_boot_image= 0;
if(isolinux_grub) { if(isolinux_grub) {
xorriso->patch_isolinux_image= (xorriso->patch_isolinux_image & ~3) | 1; xorriso->patch_isolinux_image= (xorriso->patch_isolinux_image & ~3) | 1;
@ -850,10 +854,14 @@ treatment_patch:;
xorriso->boot_image_bin_path[0] = 0; xorriso->boot_image_bin_path[0] = 0;
xorriso->boot_efi_default= 0; xorriso->boot_efi_default= 0;
} else if(strncmp(treatpt, "efi_path=", 9) == 0) { } else if(strncmp(treatpt, "efi_path=", 9) == 0) {
if(strncmp(treatpt + 9, "--interval:appended_partition_", 30) == 0) {
strcpy(xorriso->boot_image_bin_path, treatpt + 9);
} else {
ret= Xorriso_normalize_img_path(xorriso, xorriso->wdi, treatpt + 9, ret= Xorriso_normalize_img_path(xorriso, xorriso->wdi, treatpt + 9,
xorriso->boot_image_bin_path, 2); xorriso->boot_image_bin_path, 2);
if(ret <= 0) if(ret <= 0)
goto ex; goto ex;
}
xorriso->keep_boot_image= 0; xorriso->keep_boot_image= 0;
xorriso->boot_efi_default= 1; xorriso->boot_efi_default= 1;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2016.01.01.172817" #define Xorriso_timestamP "2016.01.20.104201"