aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-06-01 18:35:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-06-01 18:35:25 -0700
commit350051f3fe38c27e2c32e12aacd7417e845fd428 (patch)
tree096eb1d2b7a27566aab5d9c6254c1d603e482d30 /win32
parent43872677a6ebdb038f1b8069fc0e54e7b513cc02 (diff)
downloadsyslinux-350051f3fe38c27e2c32e12aacd7417e845fd428.tar.gz
syslinux-350051f3fe38c27e2c32e12aacd7417e845fd428.tar.xz
syslinux-350051f3fe38c27e2c32e12aacd7417e845fd428.zip
RAID mode installer support for SYSLINUXsyslinux-3.50-pre18
Hook up RAID mode in the installers for SYSLINUX
Diffstat (limited to 'win32')
-rw-r--r--win32/syslinux.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/win32/syslinux.c b/win32/syslinux.c
index 6b48d5b9..7b205a9e 100644
--- a/win32/syslinux.c
+++ b/win32/syslinux.c
@@ -233,7 +233,7 @@ int libfat_readfile(intptr_t pp, void *buf, size_t secsize, libfat_sector_t sect
noreturn usage(void)
{
- fprintf(stderr, "Usage: syslinux.exe [-sfma][-d directory] <drive>: [bootsecfile]\n");
+ fprintf(stderr, "Usage: syslinux.exe [-sfmar][-d directory] <drive>: [bootsecfile]\n");
exit(1);
}
@@ -261,6 +261,8 @@ int main(int argc, char *argv[])
int force = 0; /* -f (force) option */
int mbr = 0; /* -m (MBR) option */
int setactive = 0; /* -a (set partition active) */
+ int stupid = 0; /* -s (stupid) option */
+ int raid_mode = 0; /* -r (RAID) option */
(void)argc;
@@ -281,7 +283,10 @@ int main(int argc, char *argv[])
while ( *opt ) {
switch ( *opt ) {
case 's': /* Use "safe, slow and stupid" code */
- syslinux_make_stupid();
+ stupid = 1;
+ break;
+ case 'r': /* RAID mode */
+ raid_mode = 1;
break;
case 'f': /* Force install */
force = 1;
@@ -424,7 +429,7 @@ int main(int argc, char *argv[])
/*
* Patch ldlinux.sys and the boot sector
*/
- syslinux_patch(sectors, nsectors);
+ syslinux_patch(sectors, nsectors, stupid, raid_mode);
/*
* Rewrite the file