summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* chdir: collapse /./ and /../ in path for conventional filesystemssyslinux-4.06-pre8H. Peter Anvin2012-06-281-6/+50
| | | | | | | For conventional filesystems (i.e. not PXE), collapse /./ and /../ in the path when doing chdir. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* win32: assume STORAGE_DEVICE_NUMBER is definedH. Peter Anvin2012-06-271-1/+1
| | | | | | | | If using mingw-w64 to build for win32, this will be defined. This is confusing, especially since mingw-w64 defined __MINGW32__ but nothing else... thus hide this definition for now. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* syslxopt: fix syntax errorssyslinux-4.06-pre7H. Peter Anvin2012-06-201-2/+2
| | | | | | Oops :) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NEWS: document extlinux --deviceH. Peter Anvin2012-06-201-0/+1
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* extlinux: add --device option to override device detectH. Peter Anvin2012-06-204-5/+27
| | | | | | | Add a --device option for scripts and expert users to override the device detection. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* extlinux: centralize and reuse btrfs validationH. Peter Anvin2012-06-201-34/+77
| | | | | | We can re-use btrfs device validation now. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* extlinux: better methods for finding device matchesH. Peter Anvin2012-06-195-44/+474
| | | | | | | 1. Support parsing /proc/self/mountinfo for devices; 2. For btrfs, query the device names from btrfs itself. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Merge remote-tracking branch 'genec/linux-com32-error-message-for-hpa'syslinux-4.06-pre6H. Peter Anvin2012-06-111-7/+34
|\
| * linux.c32: Make errors clearer for usersGene Cumm2012-06-091-7/+34
| | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | isohybrid: Fix building with --as-neededMicah Gersten2012-06-111-1/+1
|/ | | | | | | | | The library link order was wrong. This patch was picked from Ubuntu. Reported-and-tested-by: Tim Fletcher <tim@night-shade.org.uk> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* btrfs: Fix booting off a btrfs subvolume.Alexander E. Patrakov2012-06-041-1/+4
| | | | | | | | | | | | | | | | The subvolume name in path.data is not NUL-terminated, so don't use strcmp on it. Before this patch, it would accumulate the following (given subvolumes with names "ext2_saved", "home", "gentoo" and "boot"): ext2_saved home_saved gentooaved bootooaved Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* relocs: Move stop to the endH. Peter Anvin2012-05-291-8/+9
| | | | | | | | | | The Linux kernel puts the stop word at the beginning of the relocation list (the list is processed backwards); Syslinux puts the stop word at the beginning of the relocation list (the list is processed forwards.) Missed that change when syncing with the kernel version. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* relocs: sync with the Linux kernelH. Peter Anvin2012-05-293-98/+286
| | | | | | | | Sync the relocs tool with the Linux kernel. The new version of this tool correctly verifies that any absolute symbol is either listed as allowed absolute or is listed as relative. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: add support for .init/fini_tableH. Peter Anvin2012-05-281-4/+5
| | | | | | | We don't actually have any constructors/destructors in the core at this time, but handle .init/fini_table in case that happens... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32.ld: handle .init_array and .fini_arraysyslinux-4.06-pre5H. Peter Anvin2012-05-281-23/+10
| | | | | | | Handle constructors/destructors via .init_array and .fini_array, as generated by newer gccs. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge remote-tracking branch 'hdt/master'syslinux-4.06-pre4H. Peter Anvin2012-05-2719-91/+707
|\
| * hdt: 0.5.2-pre2 releasehdt/0.5.2-pre2Erwan Velu2012-05-271-1/+1
| |
| * hdt: Adding say & postexec demoErwan Velu2012-05-271-0/+9
| | | | | | | | When building official hdt image, let's add a say & postexec example.
| * hdt: Adding say commandErwan Velu2012-05-272-0/+62
| | | | | | | | | | | | | | | | | | | | This command is just for displaing a message to the cli during a defined period of time. Syntax is like the following : say `my message`%<number_of_seconds> An example : say `This is my text message to display during 5 seconds`%5
| * hdt: Adding nomodule support in cliErwan Velu2012-05-279-5/+84
| | | | | | | | | | | | | | | | | | | | Some new commands might need being able to manage the argv directly instead of the much more oriented scheme we had until now. This commit add a .nomodule option to cli object to explically tell they don't have a module as parameter but only arguments. This will be needed for the 'say' command.
| * hdt: Fixing argument mgmt in cliErwan Velu2012-05-271-2/+2
| | | | | | | | Sizeof(char *) is definetly wrong for getting the length of a string.
| * hdt: Adding more debug traces in cliErwan Velu2012-05-271-6/+8
| | | | | | | | | | Adding more debug traces in the cli management to ease debugging & feature adding.
| * hdt: Fixing chain32 target in makefileErwan Velu2012-05-251-1/+1
| | | | | | | | chain32 moved, let's adjust the "release" target.
| * Merge remote-tracking branch 'hpa/master'Erwan Velu2012-05-2532-1964/+5044
| |\
| * \ Merge remote-tracking branch 'hpa/master'Erwan Velu2012-02-2410-156/+431
| |\ \
| * | | lua: Adding dhcp supportTimm Gleason2012-01-075-0/+412
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds DHCPINFO functionality to the lua.c32 binary gettable() returns a table of the BOOTP message fields returned by the DHCP server for use in a Lua pxeboot script See http://tools.ietf.org/html/rfc1542 lua key value RFC key ----------------------------------------------------------------------- opcode op message opcode hardware.type htype Hardware address type hardware.length hlen Hardware address length hops hops Used by relay agents transaction.id xid transaction id elapsed.seconds secs Secs elapsed since client boot flags flags DHCP Flags field client.ip.addr ciaddr client IP addr your.ip.addr yiaddr 'Your' IP addr. (from server) server.ip.addr siaddr Boot server IP addr gateway.ip.addr giaddr Relay agent IP addr client.mac chaddr Client hardware addr server.hostname sname Optl. boot server hostname boot.file file boot file name (ascii path) magic.cookie cookie Magic cookie getoptions() returns a table of the DHCP Options field of the BOOTP message returned by the DHCP server for use in a Lua pxeboot script. Many of the options are reurned formatted in as strings in a standard, recognizable format, such as IP addresses. 1, 2, and 4 byte numerical options are returned as integers. Other Options with non-standard formats are returned as strings of the raw binary number that was returned by the DHCP server and must be decoded in a Lua script The Options table returns the Option code as the key except where there are multiple values returned. In those cases, an extra key increment number is added to allow individual access to each Option value. lua key value value Name ----------------------------------------------------------------------- 1 Subnet Mask 6.1 DNS Server [element 1] 6.2 DNS Server [element 2] 6.3 DNS Server [element 3] 209 PXE Configuration File 21.1 Policy Filter [element 1] 21.2 Policy Filter [element 2] Options that can have a list of values, but contain only one (like Option 6) will not return with .sub key values. Usage: t = dhcp.gettable() for k,v in pairs(t) do print(k.." : "..v) end
| * | | ifcpu: Adding hypervisor supportErwan Velu2012-01-071-10/+15
| | | | | | | | | | | | | | | | This simple hack add the ability to detect the hypervisor presence.
| * | | gpllib/disk: Massive updates of fs labelsErwan Velu2011-12-221-66/+113
| | | | | | | | | | | | | | | | | | | | Inspired by Gerth and updated from both fdisk list & also from http://www.win.tue.nl/~aeb/partitions/partition_types-1.html
* | | | Merge remote-tracking branch 'genec/diag-mbr-fix-for-hpa'H. Peter Anvin2012-05-272-3/+5
|\ \ \ \
| * | | | diag/mbr: Clarify READMEGene Cumm2012-05-271-1/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * | | | Update diag/mbr instruction to match the current filename.Jean-Christian de Rivaz2012-05-271-2/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I suspect that some instructions about how to use the diag/mbr was not updated when the source file was renamed to handoff.S. Here is a simple proposition to fix that only into the handoff.S file. Jean-Christian de Rivaz Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | | | pxechn.c32: PXE NBP chainloaderGene Cumm2012-05-273-1/+1218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Designed as a more versatile COM32-based alternative to pxechain.com. It can use the PXE RESTART or chain to the new NBP without the PXE stack. It also enables a user to boot Microsoft Windows Server 2008R2 Windows Deployment Services's wdsnbp.com from PXELINUX. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | | | COM32: add DHCP pack/unpack functionsH. Peter Anvin2012-05-274-1/+323
|/ / / | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | | Merge remote-tracking branch 'genec/diag-geodsp-perl-for-hpa'H. Peter Anvin2012-04-252-4/+102
|\ \ \
| * | | diag/geodsp: Use perl to make the image; Fix MakefileGene Cumm2011-12-311-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reduces the host binary dependence and prevents the need for a rebuild of the images after a 'make clean'. This has the unfortunate side effect of going from 0.03s to 0.30s to build an image. Also fix Makefile to include (optional) raw targets and use $(GZIPPROG) Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * | | diag/geodsp: add mk-lba-img.plGene Cumm2011-12-311-0/+94
| | | | | | | | | | | | | | | | To be used to replace the native C binary
* | | | libinstaller: Avoid using <linux/ext2_fs.h>syslinux-4.06-pre3H. Peter Anvin2012-03-263-11/+886
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't use <linux/ext2_fs.h> if we can avoid it. The ioctl constants have been globalized and moved to <linux/fs.h>. Use a private copy of ext2_fs.h from e2fsprogs with the ioctl constants removed for the data structures. Do at least attempt backward compatibility for old kernel headers, but no real hope of proper operation there... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | version: Update year to 2012H. Peter Anvin2012-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It is the year MMXII of the Common Era... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | | | Makefile: Use -Ox option to NASMH. Peter Anvin2012-03-262-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We already require a new enough version of NASM that the -Ox option is supported, so just use it. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | | | Merge branch 'chaindev'H. Peter Anvin2012-03-2621-1937/+4000
|\ \ \ \
| * | | | chain.c: Fix misplaced #endif breaking non-DEBUG buildsH. Peter Anvin2012-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix misplaced #endif which made it impossible to build without DEBUG. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | | | Use PRIu64 instead of %llu, where appropriateMichal Soltys2011-08-022-2/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Michal Soltys <soltys@ziu.info>
| * | | | Merge remote-tracking branch 'origin/master' into chaindevMichal Soltys2011-08-0227-315/+575
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/modules/chain.c
| * \ \ \ \ Merge remote-tracking branch 'origin/master' into chaindevMichal Soltys2011-06-081-9/+15
| |\ \ \ \ \
| * \ \ \ \ \ Merge remote branch 'origin/master' into chaindevMichal Soltys2011-05-108-8/+34
| |\ \ \ \ \ \
| * | | | | | | com32/chain: once more rename option: stop -> breakMichal Soltys2011-05-104-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Seems to be most appropriate... Signed-off-by: Michal Soltys <soltys@ziu.info>
| * | | | | | | com32/chain: minor doc fixMichal Soltys2011-05-101-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Michal Soltys <soltys@ziu.info>
| * | | | | | | com32/chain: add support for ReactOS's freeldr.sysMichal Soltys2011-05-102-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on commit: ad4cf1470977f648ee1dd45e97939589ccb0393c (might need address adjustments) Signed-off-by: Michal Soltys <soltys@ziu.info>
| * | | | | | | Merge branch 'master' into chaindevMichal Soltys2011-05-04151-828/+4682
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/Makefile com32/modules/chain.c Note: add ReactOS' stuff introduced in old chain.c Signed-off-by: Michal Soltys <soltys@ziu.info>
| * \ \ \ \ \ \ \ Merge branch 'master' into chaindevMichal Soltys2011-03-302-10/+23
| |\ \ \ \ \ \ \ \