aboutsummaryrefslogtreecommitdiffstats
path: root/dos/syslinux.c
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 /dos/syslinux.c
parent43872677a6ebdb038f1b8069fc0e54e7b513cc02 (diff)
downloadsyslinux-devel-350051f3fe38c27e2c32e12aacd7417e845fd428.tar.gz
syslinux-devel-350051f3fe38c27e2c32e12aacd7417e845fd428.tar.xz
syslinux-devel-350051f3fe38c27e2c32e12aacd7417e845fd428.zip
RAID mode installer support for SYSLINUXsyslinux-3.50-pre18
Hook up RAID mode in the installers for SYSLINUX
Diffstat (limited to 'dos/syslinux.c')
-rw-r--r--dos/syslinux.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/dos/syslinux.c b/dos/syslinux.c
index 94c30fa5..58cc97ee 100644
--- a/dos/syslinux.c
+++ b/dos/syslinux.c
@@ -36,7 +36,7 @@ uint16_t dos_version;
void __attribute__((noreturn)) usage(void)
{
- puts("Usage: syslinux [-sfma][-d directory] <drive>: [bootsecfile]\n");
+ puts("Usage: syslinux [-sfmar][-d directory] <drive>: [bootsecfile]\n");
exit(1);
}
@@ -489,6 +489,8 @@ int main(int argc, char *argv[])
int writembr = 0; /* -m (write MBR) option */
int set_active = 0; /* -a (set partition active) option */
const char *subdir = NULL;
+ int stupid = 0;
+ int raid_mode = 0;
dprintf("argv = %p\n", argv);
for ( i = 0 ; i <= argc ; i++ )
@@ -507,7 +509,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;
@@ -635,7 +640,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);
/*
* Write the now-patched first sector of ldlinux.sys