summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* isohybrid: use getopt_long_only()syslinux-3.8xH. Peter Anvin2010-05-201-1/+1
| | | | | | | For compatibility with isohybrid.pl, use getopt_long_only() so long options are accepted with a single dash. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: create a C versionP. J. Pandit2010-05-204-2/+653
| | | | | | | Some Linux distributions have complained about Perl as a prerequisite for isohybrid, so create a C version. [ hpa: modified the array generator to put it all in one script ]
* mkdiskimage: add option -s to make a sparse imagesyslinux-3.85-pre4H. Peter Anvin2010-02-011-6/+10
| | | | | | | It is often fine to have a sparse file for the output image, so add an -s option to generate a sparse image. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Makefile: replace -W -Wall with centralized $(GCCWARN)H. Peter Anvin2010-01-101-1/+1
| | | | | | | | | Replace -W -Wall hardcoded into a bunch of Makefiles with $(GCCWARN), a centralized variable defined in the root MCONFIG. Add -Wstrict-prototypes to the list of global warnings: we should never have non-prototyped declarations. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: make the -offset option actually workH. Peter Anvin2009-11-161-2/+2
| | | | | | | | Actually implement the -offset option. Credit for the patch goes to "cmdr from the gparted-forum", reported by Sven-Hendrik Haase <sh@lutzhaase.com>. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* utils/Makefile: install pxelinux-optionsH. Peter Anvin2009-09-291-1/+2
| | | | | | Make sure the pxelinux-options script gets installed. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pxelinux-options: add help textH. Peter Anvin2009-09-291-7/+24
| | | | | | Add help text to pxelinux-options. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pxelinux: support hardcoded options "before" or "after"; toolH. Peter Anvin2009-09-291-0/+482
| | | | | | | | | Support hardcoded DHCP options both "before" or "after" the PXE-provided options. Add a tool to manipulate these hardcoded options. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: convert -id to a binary stringSteffen Winterfeldt2009-08-031-1/+1
| | | | | Shouldn't 'isohybrid -id ID' write ID as 32bit number? Currently it ends up as string messing up the mbr.
* bin2hex: actually account for the number of bytes writtenH. Peter Anvin2009-05-291-2/+5
| | | | | | Unlike C, in Perl printf() doesn't return the number of bytes written. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on utils/gethostip.cH. Peter Anvin2009-05-291-88/+88
| | | | | | | | | Automatically reformat utils/gethostip.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: we are backwards compatible again, change the error msgH. Peter Anvin2009-05-251-3/+2
| | | | | | | | We are backwards compatible again, at least as long as -partok is not used. However, there is no minor version number, so we can't check for that at this time. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: revert to a stack format compatible with previous versionsyslinux-3.81-pre14H. Peter Anvin2009-05-251-1/+1
| | | | | | | | Revert the isohybrid handover protocol so that it has a stack format compatible with the previous versions; that way we can also revert the magic number to a compatible one. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: support booting from partition; fix CBIOS bootingH. Peter Anvin2009-05-212-5/+11
| | | | | | | | Fix CBIOS in isohybrid mode. Also allow an isohybrid image to be booted from a partition. Unfortunately this breaks compatibility between differing versions of isohybrid and isolinux.bin. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: allow selecting the _c and _f versions of the prefixH. Peter Anvin2009-05-214-23/+58
| | | | | | | | Allow selecting the _f or _c versions of the prefix in addition to the default one. This is specified with the -forcehd0 or -ctrlhd0 options. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: add options, change default ptype to 0x17syslinux-3.81-pre8H. Peter Anvin2009-05-201-13/+81
| | | | | | | | Add support for setting a variety of options in isohybrid. Also change the default partition type to 0x17, "Windows hidden IFS", as that seems to make Windows less unhappy. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: preserve MBR id in isohybridPascal Terjan2009-05-011-6/+8
| | | | | | | | | | When running isohybrid again it's nice to preserve the MBR id There was some partial code to support setting the id using non existing to_int, but no way to use it. Signed-off-by: Pascal Terjan <pterjan@mandriva.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: support iso images over 2GBPascal Terjan2009-05-011-2/+1
| | | | | | | | "use integer" limits integers to 2^31-1 on 32 bits, which makes imgsize to be -1 on DVD images Signed-off-by: Pascal Terjan <pterjan@mandriva.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generationH. Peter Anvin2009-04-271-2/+4
| | | | | | | | | | | | Make the dependency generation more common; have a general pattern in MCONFIG, and use it in rules (not in CFLAGS). For NASM source, in order to stay compatible with old versions of NASM, run NASM twice; newer versions of NASM is capable of generating dependencies simultaneously like gcc can, but that would break compatibility with older distros. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Fix minor errors in keytab-liloOlivier Korn2009-02-101-5/+5
| | | | | | | | | | | | | | | | | | H. Peter Anvin wrote: > Thanks for the warning. I have updated keytab-lilo in the git tree with > keytab-lilo.pl from LILO 22.8. Thank you H. Peter. I just checked it and the new version doesn't work "out of the box". It says... syntax error at keytab-lilo line 4, near "eval " Execution of keytab-lilo aborted due to compilation errors. Furthermore, after correcting lines 3 and 4 (which are responsible of the above error), keyboard maps can't be found (by loadkeys utility) because of an added bad extension (.map instead of .kmap). Attached is a patch I wrote in order to make it fully work (apply it against the version of keytab-lilo which is now in the git tree).
* Update keytab-lilo from LILO 22.8H. Peter Anvin2009-02-091-21/+5
|
* isohybrid: remove Perl modules we don't actually needH. Peter Anvin2008-09-071-3/+0
| | | | | | Remove Perl "use" statements that aren't actually required. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: verify we have a hybrid-compatible isolinux.binH. Peter Anvin2008-09-071-2/+9
| | | | | | | | Verify that the PXE boot loader is a hybrid-compatible isolinux.bin by looking for the hybrid boot signature, otherwise print an error message. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid, mkdiskimage: don't use sysopen(), sysread()H. Peter Anvin2008-09-072-4/+2
| | | | | | | | Don't use sysopen() and sysread() when it doesn't make sense. Especially avoid using sysread() -- sysopen() can be used with read(); the C fdopen() is implicit. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: fix partition table generation, documentsyslinux-3.72-pre3H. Peter Anvin2008-09-051-10/+4
| | | | | | | Fix the generation of the partition table in isohybrid; also document the operation of the partition table. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* ISOLINUX: support for hybrid mode (CD-ROM/USB key)H. Peter Anvin2008-09-052-1/+170
| | | | | | Still a work in progress. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* keytab-lilo: don't try to be too smartH. Peter Anvin2008-09-041-3/+3
| | | | | | | The keytab-lilo script tried to add pathname and extension, but loadkeys does that better. Therefore, don't try to be smart. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Centralize configurables; better "make install" etcH. Peter Anvin2008-05-291-16/+8
| | | | | | | Begin the process of centralizing configurables. Improve "make install" and "make netinstall"; add "make extbootinstall".
* Move files out of root into core, dos, and utilsH. Peter Anvin2008-05-2910-0/+1279
Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.