[arch-releng] [PATCH] [configs/releng] Make kernel and initramfs patch relative for syslinux
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> --- configs/releng/syslinux.dual/syslinux_arch32.cfg | 4 ++-- configs/releng/syslinux/syslinux.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configs/releng/syslinux.dual/syslinux_arch32.cfg b/configs/releng/syslinux.dual/syslinux_arch32.cfg index 9b4030e..1e77f54 100644 --- a/configs/releng/syslinux.dual/syslinux_arch32.cfg +++ b/configs/releng/syslinux.dual/syslinux_arch32.cfg @@ -4,8 +4,8 @@ Boot the Arch Linux (i686) live medium. It allows you to install Arch Linux or perform system maintenance. ENDTEXT MENU LABEL Boot Arch Linux (i686) -LINUX /%INSTALL_DIR%/boot/i686/vmlinuz -INITRD /%INSTALL_DIR%/boot/i686/archiso.img +LINUX ../i686/vmlinuz +INITRD ../i686/archiso.img APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% # Next line should be uncommented when prepare enviroment to boot from PXE. #IPAPPEND 3 diff --git a/configs/releng/syslinux/syslinux.cfg b/configs/releng/syslinux/syslinux.cfg index 7762278..76c62ba 100644 --- a/configs/releng/syslinux/syslinux.cfg +++ b/configs/releng/syslinux/syslinux.cfg @@ -33,8 +33,8 @@ Boot the Arch Linux live medium. It allows you to install Arch Linux or perform system maintenance. ENDTEXT MENU LABEL Boot Arch Linux -LINUX /%INSTALL_DIR%/boot/%ARCH%/vmlinuz -INITRD /%INSTALL_DIR%/boot/%ARCH%/archiso.img +LINUX ../%ARCH%/vmlinuz +INITRD ../%ARCH%/archiso.img APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% # Next line should be uncommented when prepare enviroment to boot from PXE. #IPAPPEND 3 -- 1.7.7.4
On 11/24/2011 11:19 AM, Gerardo Exequiel Pozzi wrote:
Signed-off-by: Gerardo Exequiel Pozzi<vmlinuz386@yahoo.com.ar> --- configs/releng/syslinux.dual/syslinux_arch32.cfg | 4 ++-- configs/releng/syslinux/syslinux.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/configs/releng/syslinux.dual/syslinux_arch32.cfg b/configs/releng/syslinux.dual/syslinux_arch32.cfg index 9b4030e..1e77f54 100644 --- a/configs/releng/syslinux.dual/syslinux_arch32.cfg +++ b/configs/releng/syslinux.dual/syslinux_arch32.cfg @@ -4,8 +4,8 @@ Boot the Arch Linux (i686) live medium. It allows you to install Arch Linux or perform system maintenance. ENDTEXT MENU LABEL Boot Arch Linux (i686) -LINUX /%INSTALL_DIR%/boot/i686/vmlinuz -INITRD /%INSTALL_DIR%/boot/i686/archiso.img +LINUX ../i686/vmlinuz +INITRD ../i686/archiso.img APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% # Next line should be uncommented when prepare enviroment to boot from PXE. #IPAPPEND 3 diff --git a/configs/releng/syslinux/syslinux.cfg b/configs/releng/syslinux/syslinux.cfg index 7762278..76c62ba 100644 --- a/configs/releng/syslinux/syslinux.cfg +++ b/configs/releng/syslinux/syslinux.cfg @@ -33,8 +33,8 @@ Boot the Arch Linux live medium. It allows you to install Arch Linux or perform system maintenance. ENDTEXT MENU LABEL Boot Arch Linux -LINUX /%INSTALL_DIR%/boot/%ARCH%/vmlinuz -INITRD /%INSTALL_DIR%/boot/%ARCH%/archiso.img +LINUX ../%ARCH%/vmlinuz +INITRD ../%ARCH%/archiso.img APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% # Next line should be uncommented when prepare enviroment to boot from PXE. #IPAPPEND 3 I need to test this, I am going to work now. (working for HTTP, but not for TFTP)
---- /tmp/pxeboot/arch/boot/syslinux/pxelinux.cfg ---- DEFAULT loadconfig LABEL loadconfig CONFIG /arch/boot/syslinux/syslinux.cfg APPEND /arch/boot/syslinux/ ------- dnsmasq --port=0 --enable-tftp --tftp-root=/tmp/pxeboot --dhcp-boot=/arch/boot/syslinux/gpxelinux.0,192.168.0.77 --dhcp-range=192.168.0.2,192.168.0.254,8640 --dhcp-option-force=210,/ --dhcp-option-force=209,/arch/boot/syslinux/pxelinux.cfg See later. -- Gerardo Exequiel Pozzi \cos^2\alpha + \sin^2\alpha = 1
Am 24.11.2011 15:32, schrieb Gerardo Exequiel Pozzi:
I need to test this, I am going to work now. (working for HTTP, but not for TFTP)
---- /tmp/pxeboot/arch/boot/syslinux/pxelinux.cfg ---- DEFAULT loadconfig
LABEL loadconfig CONFIG /arch/boot/syslinux/syslinux.cfg APPEND /arch/boot/syslinux/ ------- dnsmasq --port=0 --enable-tftp --tftp-root=/tmp/pxeboot --dhcp-boot=/arch/boot/syslinux/gpxelinux.0,192.168.0.77 --dhcp-range=192.168.0.2,192.168.0.254,8640 --dhcp-option-force=210,/ --dhcp-option-force=209,/arch/boot/syslinux/pxelinux.cfg
HTTP servers resolve ".." inside URLs, TFTP servers probably don't. This could be a showstopper. However, I think we can work around this whole problem (including the loadconfig trick) if we teach pxelinux.0 to resolve ../ in path names by removing path components (in the TFTP client). I'll see if I can wrap up a patch for pxelinux and get it accepted upstream. Explanation: TFTP is stupid: It doesn't even understand paths. pxelinux.0 probably just concatenates the tftp prefix from DHCP with the file name and sends it as a request. A patch would have to convert /arch/boot/syslinux/../i686/vmlinuz to /arch/boot/i686/vmlinuz, which would be an existing file on TFTP.
participants (2)
-
Gerardo Exequiel Pozzi
-
Thomas Bächler