From b0ac906b283b428ba1c7f35fe1e71a84b3d3d9c6 Mon Sep 17 00:00:00 2001 From: Paulo Alcantara Date: Tue, 5 Jul 2011 21:32:51 +0000 Subject: Add NTFS filesystem support to Linux and Windows installers Signed-off-by: Paulo Alcantara --- win/syslinux.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'win') diff --git a/win/syslinux.c b/win/syslinux.c index 0e833d8d..4e4435ef 100644 --- a/win/syslinux.c +++ b/win/syslinux.c @@ -254,6 +254,7 @@ int main(int argc, char *argv[]) int ldlinux_sectors; uint32_t ldlinux_cluster; int nsectors; + int fs_type; if (!checkver()) { fprintf(stderr, @@ -326,8 +327,10 @@ int main(int argc, char *argv[]) exit(1); } - /* Check to see that what we got was indeed an MS-DOS boot sector/superblock */ - if ((errmsg = syslinux_check_bootsect(sectbuf))) { + /* Check to see that what we got was indeed an FAT/NTFS + * boot sector/superblock + */ + if ((errmsg = syslinux_check_bootsect(sectbuf, &fs_type))) { fprintf(stderr, "%s\n", errmsg); exit(1); } @@ -472,7 +475,7 @@ int main(int argc, char *argv[]) } /* Make the syslinux boot sector */ - syslinux_make_bootsect(sectbuf); + syslinux_make_bootsect(sectbuf, fs_type); /* Write the syslinux boot sector into the boot sector */ if (opt.bootsecfile) { -- cgit v1.2.1