From 92ec54105f81b5040f4bd5321e9ecf4a05855862 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 13 Apr 2013 06:48:03 +0000 Subject: [PATCH] New options bit with isoburn_igopt_set_system_area() for GRUB2 MBR patching --- libisoburn/trunk/libisoburn/isoburn.c | 2 +- libisoburn/trunk/libisoburn/libisoburn.h | 8 ++++++++ libisoburn/trunk/xorriso/xorriso_timestamp.h | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libisoburn/trunk/libisoburn/isoburn.c b/libisoburn/trunk/libisoburn/isoburn.c index 105fbe62..cbe3de00 100644 --- a/libisoburn/trunk/libisoburn/isoburn.c +++ b/libisoburn/trunk/libisoburn/isoburn.c @@ -1441,7 +1441,7 @@ int isoburn_igopt_set_system_area(struct isoburn_imgen_opts *opts, } memcpy(opts->system_area_data, data, 32768); } - opts->system_area_options = options & 0x3fff; + opts->system_area_options = options & 0x7fff; return(1); } diff --git a/libisoburn/trunk/libisoburn/libisoburn.h b/libisoburn/trunk/libisoburn/libisoburn.h index ce8f4e49..dbbfd93f 100644 --- a/libisoburn/trunk/libisoburn/libisoburn.h +++ b/libisoburn/trunk/libisoburn/libisoburn.h @@ -1541,6 +1541,14 @@ int isoburn_igopt_get_scdbackup_tag(struct isoburn_imgen_opts *o, covers the ISO image. Not compatible with any other feature which needs to have own MBR partition entries. + bit14= Only with System area type 0 = MBR + GRUB2 boot provisions: + @since 1.3.0 + Patch system area at byte 92 to 99 with 512-block + address + 1 of the first boot image file. + Little-endian 8-byte. + Should be combined with options bit0. + Will not be in effect if options bit1 is set. @return 1 success, 0 no data to get, <0 failure */ int isoburn_igopt_set_system_area(struct isoburn_imgen_opts *o, diff --git a/libisoburn/trunk/xorriso/xorriso_timestamp.h b/libisoburn/trunk/xorriso/xorriso_timestamp.h index 4f3385af..ac466c0f 100644 --- a/libisoburn/trunk/xorriso/xorriso_timestamp.h +++ b/libisoburn/trunk/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2013.04.12.181739" +#define Xorriso_timestamP "2013.04.13.064738"