diff options
| author | H. Peter Anvin <hpa@zytor.com> | 2010-02-14 13:40:04 -0800 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-14 13:40:04 -0800 |
| commit | 5e50b4d4faf398f072c0dea814b11db1a95efeec (patch) | |
| tree | 19dcc5e2a882156516ebcd8403b5e40921bef647 /core/runkernel.inc | |
| parent | 3399f97a70cdca0cb05129ea3fb5e9dd42c35d9c (diff) | |
| download | syslinux-5e50b4d4faf398f072c0dea814b11db1a95efeec.tar.gz | |
config: allow a chdir at the time a new configuration file is loaded
If a directory name/path prefix is appended to a loaded configuration
file, do a chdir at that point. We finally have all the mechanism to
do this right.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/runkernel.inc')
| -rw-r--r-- | core/runkernel.inc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/runkernel.inc b/core/runkernel.inc index f07c70f6..30177e80 100644 --- a/core/runkernel.inc +++ b/core/runkernel.inc @@ -78,10 +78,8 @@ construct_cmdline: mov cx,boot_image_len rep movsb mov si,KernelCName ; Unmangled kernel name - mov cx,[KernelCNameLen] - rep movsb - mov al,' ' ; Space - stosb + call strcpy + mov byte [es:di-1],' ' ; Follow by space call do_ip_append ; Handle IPAppend @@ -546,7 +544,7 @@ parse_load_initrd: push di mov di,InitRD ; Target buffer for mangled name - pm_call mangle_name + pm_call pm_mangle_name pop di call loadinitrd @@ -593,7 +591,7 @@ loadinitrd: push edi mov si,InitRD mov di,InitRDCName - pm_call unmangle_name ; Create human-readable name + pm_call pm_unmangle_name ; Create human-readable name sub di,InitRDCName mov [InitRDCNameLen],di mov di,InitRD |
