[arch-releng] Syslinux (ext*/fat) loadconfig file
$ cat configs/releng/syslinux/syslinux.cfg DEFAULT loadconfig LABEL loadconfig CONFIG /%INSTALL_DIR%/boot/syslinux/archiso.cfg APPEND /%INSTALL_DIR%/ Shouldn't this path be relative? Syslinux (in contrast to isolinux and pxelinux) can handle relative paths containing '..'. If we can make this relative, we can make the loadconfig trick independent of the path on the target medium.
On 12/02/2011 07:29 PM, Thomas Bächler wrote:
$ cat configs/releng/syslinux/syslinux.cfg DEFAULT loadconfig
LABEL loadconfig CONFIG /%INSTALL_DIR%/boot/syslinux/archiso.cfg APPEND /%INSTALL_DIR%/
Shouldn't this path be relative? Syslinux (in contrast to isolinux and pxelinux) can handle relative paths containing '..'. If we can make this relative, we can make the loadconfig trick independent of the path on the target medium.
mmmmm..... something like.... DEFAULT loadconfig LABEL loadconfig CONFIG archiso.cfg APPEND ../../ its works :) This file is only used by syslinux/extlinux, bah! both are the same, hehe you know ;), isolinux go to archiso.cfg via isolinux.cfg and pxelinux go directly to archiso.cfg. -- Gerardo Exequiel Pozzi \cos^2\alpha + \sin^2\alpha = 1
We are only using these files only for SYSLINUX bootloader that supports ".." as directories. ISOLINUX jumps to archiso.cfg via isolinux.cfg PXELINUX goes directly to archiso.cfg via DHCP configuration. Suggested by Thomas. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> --- configs/releng/syslinux.dual/syslinux.cfg | 4 ++-- configs/releng/syslinux/syslinux.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configs/releng/syslinux.dual/syslinux.cfg b/configs/releng/syslinux.dual/syslinux.cfg index 1040d3f..3ee98de 100644 --- a/configs/releng/syslinux.dual/syslinux.cfg +++ b/configs/releng/syslinux.dual/syslinux.cfg @@ -1,5 +1,5 @@ DEFAULT loadconfig LABEL loadconfig - CONFIG /%INSTALL_DIR%/boot/syslinux/archiso.cfg - APPEND /%INSTALL_DIR%/ + CONFIG archiso.cfg + APPEND ../../ diff --git a/configs/releng/syslinux/syslinux.cfg b/configs/releng/syslinux/syslinux.cfg index 1040d3f..3ee98de 100644 --- a/configs/releng/syslinux/syslinux.cfg +++ b/configs/releng/syslinux/syslinux.cfg @@ -1,5 +1,5 @@ DEFAULT loadconfig LABEL loadconfig - CONFIG /%INSTALL_DIR%/boot/syslinux/archiso.cfg - APPEND /%INSTALL_DIR%/ + CONFIG archiso.cfg + APPEND ../../ -- 1.7.7.4
Am 03.12.2011 02:14, schrieb Gerardo Exequiel Pozzi:
We are only using these files only for SYSLINUX bootloader that supports ".." as directories.
ISOLINUX jumps to archiso.cfg via isolinux.cfg PXELINUX goes directly to archiso.cfg via DHCP configuration.
Suggested by Thomas.
ACK.
participants (2)
-
Gerardo Exequiel Pozzi
-
Thomas Bächler