aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2004-08-15 19:40:45 +0000
committerhpa <hpa>2004-08-15 19:40:45 +0000
commit6a0663ca69bccc7fc9733355fb70ea2903333a10 (patch)
tree4f74fdbc43bce085fdd7ce0cec8d9924ea18e49a
parent090ff3d4015be69e5f24e1483d298b53c14a2e57 (diff)
downloadsyslinux-elf-6a0663ca69bccc7fc9733355fb70ea2903333a10.tar.gz
syslinux-elf-6a0663ca69bccc7fc9733355fb70ea2903333a10.tar.xz
syslinux-elf-6a0663ca69bccc7fc9733355fb70ea2903333a10.zip
Make mtools a bit more forgiving for goofy configurations
-rw-r--r--syslinux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/syslinux.c b/syslinux.c
index a4a5e6d9..c5f2d29c 100644
--- a/syslinux.c
+++ b/syslinux.c
@@ -193,6 +193,8 @@ int main(int argc, char *argv[])
exit(1);
}
fprintf(mtc,
+ "MTOOLS_NO_VFAT=1\n"
+ "MTOOLS_SKIP_CHECK=1\n" /* Needed for some flash memories */
"drive s:\n"
" file=\"/proc/%lu/fd/%d\"\n"
" offset=%lld\n",
@@ -212,7 +214,7 @@ int main(int argc, char *argv[])
/* This command may fail legitimately */
system("mattrib -h -r -s s:ldlinux.sys 2>/dev/null");
- mtp = popen("mcopy -o - s:ldlinux.sys", "w");
+ mtp = popen("mcopy -D o -D O -o - s:ldlinux.sys", "w");
if ( !mtp ||
(fwrite(syslinux_ldlinux, 1, syslinux_ldlinux_len, mtp)
!= syslinux_ldlinux_len) ||