Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nextgen-router
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
nextgen-router
Commits
1be604d3
Commit
1be604d3
authored
Jan 09, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pxe
parent
4f65c6d8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
142 additions
and
1 deletion
+142
-1
files/pxe/menu.ipxe
files/pxe/menu.ipxe
+100
-0
files/pxe/nbxyz.ipxe
files/pxe/nbxyz.ipxe
+39
-0
files/services/docker-compose.yml.j2
files/services/docker-compose.yml.j2
+1
-1
prepare.sh
prepare.sh
+2
-0
No files found.
files/pxe/menu.ipxe
0 → 100644
View file @
1be604d3
#!ipxe
:start
chain --autofree boot.cfg ||
echo Attempting to retrieve latest upstream version number...
chain --timeout 5000 http://${boot_domain}/version.ipxe ||
ntp 0.pool.ntp.org ||
iseq ${cls} serial && goto ignore_cls ||
set cls:hex 1b:5b:4a # ANSI clear screen sequence - "^[[J"
set cls ${cls:string}
:ignore_cls
isset ${arch} && goto skip_arch_detect ||
cpuid --ext 29 && set arch x86_64 || set arch i386
iseq ${buildarch} arm64 && set arch arm64 ||
:skip_arch_detect
isset ${menu} && goto ${menu} ||
isset ${ip} || dhcp || echo DHCP failed
:main_menu
clear menu
set space:hex 20:20
set space ${space:string}
iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
menu ${site_name}
item --gap Default:
item local ${space} Boot from local hdd
item --gap Distributions:
iseq ${menu_linux} 1 && item linux ${space} Linux Network Installs ||
iseq ${menu_linux_arm} 1 && item linux-arm ${space} Linux Network Installs ||
iseq ${menu_live} 1 && item live ${space} Live CDs ||
iseq ${menu_live_arm} 1 && item live-arm ${space} Live CDs ||
iseq ${menu_bsd} 1 && item bsd ${space} BSD Installs ||
iseq ${menu_unix} 1 && item unix ${space} Unix Network Installs ||
iseq ${menu_freedos} 1 && item freedos ${space} FreeDOS ||
iseq ${menu_windows} 1 && item windows ${space} Windows ||
item --gap Tools:
iseq ${menu_utils} 1 && item utils-${platform} ${space} Utilities ||
iseq ${menu_utils_arm} 1 && item utils-arm ${space} Utilities ||
iseq ${arch} x86_64 && set bits 64 || set bits 32
iseq ${arch} arm64 && set bits 64 ||
item changebits ${space} Architecture: ${arch} (${bits}bit)
item shell ${space} iPXE shell
item netinfo ${space} Network card info
item lspci ${space} PCI Device List
item about ${space} About netboot.xyz
item --gap Signature Checks:
item sig_check ${space} netboot.xyz [ enabled: ${sigs_enabled} ]
isset ${github_user} && item --gap Custom Github Menu: ||
isset ${github_user} && item custom-github ${space} ${github_user}'s Custom Menu ||
isset ${menu} && set timeout 0 || set timeout ${boot_timeout}
choose --timeout ${timeout} --default ${menu} menu || goto local
echo ${cls}
goto ${menu} ||
iseq ${sigs_enabled} true && goto verify_sigs || goto change_menu
:verify_sigs
imgverify ${menu}.ipxe ${sigs}${menu}.ipxe.sig || goto error
goto change_menu
:change_menu
chain ${menu}.ipxe || goto error
goto main_menu
:error
echo Error occured, press any key to return to menu ...
prompt
goto main_menu
:local
echo Booting from local disks ...
exit 0
:shell
echo Type "exit" to return to menu.
set menu main_menu
shell
goto main_menu
:changebits
iseq ${arch} x86_64 && set arch i386 || set arch x86_64
goto main_menu
:sig_check
iseq ${sigs_enabled} true && set sigs_enabled false || set sigs_enabled true
goto main_menu
:about
chain https://boot.netboot.xyz/about.ipxe || chain about.ipxe
goto main_menu
:custom-github
chain https://raw.githubusercontent.com/${github_user}/netboot.xyz-custom/master/custom.ipxe || goto error
goto main_menu
:custom-user
chain custom/custom.ipxe
goto main_menu
files/pxe/nbxyz.ipxe
0 → 100644
View file @
1be604d3
#!ipxe
# netboot.xyz endpoints
# used for accessing the latest internet build menus
goto ${menu} ||
:nbxyz
set os netboot.xyz
clear nbxyz_version
menu ${os}
item --gap Endpoints
item nbxyz-rolling ${space} Production Rolling (boot.netboot.xyz)
item nbxyz-prod ${space} Production Release (boot.netboot.xyz)
item nbxyz-staging ${space} Staging (staging.boot.netboot.xyz)
item nbxyz-dev ${space} Development (dev.boot.netboot.xyz)
choose nbxyz_version || goto nbxyz_exit
goto ${nbxyz_version}
:nbxyz-rolling
chain --autofree https://boot.netboot.xyz/menu.ipxe ||
goto nbxyz
:nbxyz-prod
chain https://boot.netboot.xyz/version.ipxe ||
chain --autofree https://boot.netboot.xyz/${upstream_version}/menu.ipxe ||
goto nbxyz
:nbxyz-staging
chain https://staging.boot.netboot.xyz/version.ipxe ||
chain --autofree https://staging.boot.netboot.xyz/${upstream_version}/menu.ipxe ||
goto nbxyz
:nbxyz-dev
chain https://s3.amazonaws.com/dev.boot.netboot.xyz/version.ipxe ||
chain --autofree https://s3.amazonaws.com/dev.boot.netboot.xyz/${upstream_version}/menu.ipxe ||
goto nbxyz
:nbxyz_exit
exit 0
files/services/docker-compose.yml.j2
View file @
1be604d3
...
...
@@ -48,7 +48,7 @@ services:
- '{{services.address}}:16980:80'
volumes:
- ./pxe/data:/assets:ro
- ./pxe/menus:/config/menus
- ./pxe/menus:/config/menus
:ro
{% endif %}
{% if services.ddns is defined and services.ddns %}
{% for instance in services.ddns %}
...
...
prepare.sh
View file @
1be604d3
...
...
@@ -40,4 +40,6 @@ wget -O - https://github.com/netbootxyz/netboot.xyz/releases/download/${MENU_VER
rm
-rf
pxe-menus/boot.cfg
cp
-rf
boot.netboot.xyz/ipxe/netboot.xyz
*
./pxe-menus/
cp
-rf
../files/pxe/centos.ipxe ./pxe-menus/
cp
-rf
../files/pxe/menu.ipxe ./pxe-menus/
# cp -rf ../files/pxe/nbxyz.ipxe ./pxe-menus/
cd
..
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment