diff options
author | Shao Miller <shao.miller@yrdsb.edu.on.ca> | 2010-07-03 03:47:25 -0400 |
---|---|---|
committer | Shao Miller <shao.miller@yrdsb.edu.on.ca> | 2010-07-03 05:28:00 -0400 |
commit | 591ab24b42b606caf4dabbb8bf33dbc421e8f005 (patch) | |
tree | 710bba25ca4b1f233c5c625208e4f4120c75a327 /extlinux | |
parent | c8c991a6a094f4678e7f9b36faf1fb0534328fc1 (diff) | |
download | syslinux-591ab24b42b606caf4dabbb8bf33dbc421e8f005.tar.gz |
libinstaller: Add --mbr, --active, and --force options
In order to consolidate the installer option-parsing system,
we add the --mbr (-m), --active (-a), and --force (-f)
options from the DOS, Win32, and mtools installers to
libinstaller.
Since the -m and -a options are not currently valid for the
Linux 'syslinux' and 'extlinux' installers, we add error
messages to both of these. The -f option is allowed but
does nothing for them.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Diffstat (limited to 'extlinux')
-rwxr-xr-x[-rw-r--r--] | extlinux/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extlinux/main.c b/extlinux/main.c index daebc101..a541e38a 100644..100755 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -809,7 +809,7 @@ int main(int argc, char *argv[]) { parse_options(argc, argv, MODE_EXTLINUX); - if (!opt.directory) + if (!opt.directory || opt.install_mbr || opt.activate_partition || opt.force) usage(EX_USAGE, 0); if (opt.update_only == -1) { |