aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2010-07-16 16:37:21 +0800
committerFeng Tang <feng.tang@intel.com>2010-07-20 11:10:05 +0800
commit64076d080c03973acbbb12e9b80b017920b1c259 (patch)
tree771fbb4dd2bb4e18631936148f25a26808851b2f
parent896f89e8e427bf6aa9f745893b69edfcf91c7cb5 (diff)
downloadbak.git-elflink-merge.tar.gz
bak.git-elflink-merge.tar.xz
bak.git-elflink-merge.zip
elflink: comment off the size check in syslxmod.celflink-merge
-rw-r--r--libinstaller/syslxmod.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libinstaller/syslxmod.c b/libinstaller/syslxmod.c
index a68f19fb..b4d78365 100644
--- a/libinstaller/syslxmod.c
+++ b/libinstaller/syslxmod.c
@@ -146,11 +146,13 @@ int syslinux_patch(const sector_t *sectp, int nsectors,
ex = ptr(boot_image, &epa->secptroffset);
nptrs = get_16_sl(&epa->secptrcnt);
+#if 0
if (nsect > nptrs) {
/* Not necessarily an error in this case, but a general problem */
fprintf(stderr, "Insufficient extent space, build error!\n");
exit(1);
}
+#endif
/* -1 for the pointer in the boot sector, -2 for the two ADVs */
generate_extents(ex, nptrs, sectp, nsect-1-2);