Add uefi support for pxe boot
close #15 Add the uefi files in subdir and symlinks to avoid files duplication.
This commit is contained in:
parent
96b74ca2d9
commit
1654bf7683
34
README.md
34
README.md
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
All needed files to set up a PXE server.
|
All needed files to set up a PXE server for both standard bios and UEFI (32b and 64b).
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
|
@ -20,24 +20,48 @@ Use some bootloaders files provide by :
|
||||||
* `pxelinux` debian package :
|
* `pxelinux` debian package :
|
||||||
* gpxelinux.0
|
* gpxelinux.0
|
||||||
* pxelinux.0
|
* pxelinux.0
|
||||||
|
* `syslinux-efi` debian package :
|
||||||
|
* syslinux.efi
|
||||||
* `syslinux-common` debian package :
|
* `syslinux-common` debian package :
|
||||||
* chain.c32
|
* chain.c32
|
||||||
* ldlinux.c32
|
* ldlinux.c32
|
||||||
|
* ldlinux.e32
|
||||||
|
* ldlinux.e64
|
||||||
* libcom32.c32
|
* libcom32.c32
|
||||||
* libutil.c32
|
* libutil.c32
|
||||||
* menu.c32
|
* menu.c32
|
||||||
* reboot.c32
|
* reboot.c32
|
||||||
* vesamenu.c32
|
* vesamenu.c32
|
||||||
|
|
||||||
To get those files from the packages of your repositories :
|
* To get those files from the packages of your repositories :
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
mkdir -p temp_pxe_files
|
mkdir -p temp_pxe_files
|
||||||
cd temp_pxe_files
|
cd temp_pxe_files
|
||||||
aptitude download pxelinux syslinux-common
|
mkdir bios efi32 efi64
|
||||||
|
aptitude pxelinux syslinux-common syslinux-efi
|
||||||
ar p pxelinux*.deb data.tar.xz | tar xJ -C . --strip-components=4 ./usr/lib/PXELINUX/{g,}pxelinux.0
|
ar p pxelinux*.deb data.tar.xz | tar xJ -C . --strip-components=4 ./usr/lib/PXELINUX/{g,}pxelinux.0
|
||||||
ar p syslinux-common*.deb data.tar.xz | tar xJ -C . --strip-components=6 ./usr/lib/syslinux/modules/bios/{chain,ldlinux,libcom32,libutil,menu,reboot,vesamenu}.c32
|
ar p pxelinux*.deb data.tar.xz | tar xJ -C bios/ --strip-components=4 ./usr/lib/PXELINUX/{g,}pxelinux.0
|
||||||
|
ar p syslinux-efi*.deb data.tar.xz | tar xJ -C efi32/ --strip-components=5 ./usr/lib/SYSLINUX.EFI/efi32/syslinux.efi
|
||||||
|
ar p syslinux-efi*.deb data.tar.xz | tar xJ -C efi64/ --strip-components=5 ./usr/lib/SYSLINUX.EFI/efi64/syslinux.efi
|
||||||
|
ar p syslinux-common*.deb data.tar.xz | tar xJ -C . --strip-components=6 ./usr/lib/syslinux/modules/bios/{chain,ldlinux,libcom32,libutil,menu,reboot,vesamenu}.*
|
||||||
|
ar p syslinux-common*.deb data.tar.xz | tar xJ -C bios/ --strip-components=6 ./usr/lib/syslinux/modules/bios/{chain,ldlinux,libcom32,libutil,menu,reboot,vesamenu}.*
|
||||||
|
ar p syslinux-common*.deb data.tar.xz | tar xJ -C efi32/ --strip-components=6 ./usr/lib/syslinux/modules/efi32/{chain.c32,ldlinux.e32,libcom32.c32,libutil.c32,menu.c32,reboot.c32,vesamenu.c32}
|
||||||
|
ar p syslinux-common*.deb data.tar.xz | tar xJ -C efi64/ --strip-components=6 ./usr/lib/syslinux/modules/efi64/{chain.c32,ldlinux.e64,libcom32.c32,libutil.c32,menu.c32,reboot.c32,vesamenu.c32}
|
||||||
```
|
```
|
||||||
The MD5 checksum can mismatch between the files from this repo and those from Debian's packages.
|
|
||||||
|
* The MD5 checksum can mismatch between the files from this repo and those from Debian's packages.
|
||||||
|
* Then create symlinks to avoid to duplicate files :
|
||||||
|
|
||||||
|
``` sh
|
||||||
|
for DIR in bios efi32 efi64; do
|
||||||
|
ln -s ../config "${DIR}"
|
||||||
|
ln -s ../installer "${DIR}"
|
||||||
|
ln -s ../preseed "${DIR}"
|
||||||
|
ln -s ../pxelinux.cfg "${DIR}"
|
||||||
|
done
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Configuration files
|
### Configuration files
|
||||||
Contains the files which defines the PXE menu. The [first one][main menu.cfg] will :
|
Contains the files which defines the PXE menu. The [first one][main menu.cfg] will :
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../config
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../installer
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../preseed
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../pxelinux.cfg
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../config
|
|
@ -0,0 +1 @@
|
||||||
|
../installer
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../preseed
|
|
@ -0,0 +1 @@
|
||||||
|
../pxelinux.cfg
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../config
|
|
@ -0,0 +1 @@
|
||||||
|
../installer
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../preseed
|
|
@ -0,0 +1 @@
|
||||||
|
../pxelinux.cfg
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue