Skip to content

Commit e9bc226

Browse files
committed
live ISO boot mode for MBR systems -> syslinux
1 parent fc563bc commit e9bc226

File tree

8 files changed

+129
-0
lines changed

8 files changed

+129
-0
lines changed

syslinux/archiso_head.cfg

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
SERIAL 0 115200
2+
UI vesamenu.c32
3+
MENU TITLE TCET Linux
4+
MENU BACKGROUND splash.png
5+
6+
MENU WIDTH 78
7+
MENU MARGIN 4
8+
MENU ROWS 7
9+
MENU VSHIFT 10
10+
MENU TABMSGROW 14
11+
MENU CMDLINEROW 14
12+
MENU HELPMSGROW 16
13+
MENU HELPMSGENDROW 29
14+
15+
# Refer to https://wiki.syslinux.org/wiki/index.php/Comboot/menu.c32
16+
17+
MENU COLOR border 30;44 #40ffffff #a0000000 std
18+
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
19+
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
20+
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
21+
MENU COLOR help 37;40 #c0ffffff #a0000000 std
22+
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
23+
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
24+
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
25+
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
26+
27+
MENU CLEAR
28+
MENU IMMEDIATE

syslinux/archiso_pxe-linux.cfg

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
LABEL arch64_nbd
2+
TEXT HELP
3+
Boot the TCET Linux install medium using NBD.
4+
It allows you to install TCET Linux or perform system maintenance.
5+
ENDTEXT
6+
MENU LABEL TCET Linux install medium (x86_64, NBD)
7+
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
8+
INITRD ::/%INSTALL_DIR%/boot/intel-ucode.img,::/%INSTALL_DIR%/boot/amd-ucode.img,::/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
9+
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% archiso_nbd_srv=${pxeserver} cms_verify=y
10+
SYSAPPEND 3
11+
12+
LABEL arch64_nfs
13+
TEXT HELP
14+
Boot the TCET Linux live medium using NFS.
15+
It allows you to install TCET Linux or perform system maintenance.
16+
ENDTEXT
17+
MENU LABEL TCET Linux install medium (x86_64, NFS)
18+
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
19+
INITRD ::/%INSTALL_DIR%/boot/intel-ucode.img,::/%INSTALL_DIR%/boot/amd-ucode.img,::/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
20+
APPEND archisobasedir=%INSTALL_DIR% archiso_nfs_srv=${pxeserver}:/run/archiso/bootmnt cms_verify=y
21+
SYSAPPEND 3
22+
23+
LABEL arch64_http
24+
TEXT HELP
25+
Boot the TCET Linux live medium using HTTP.
26+
It allows you to install TCET Linux or perform system maintenance.
27+
ENDTEXT
28+
MENU LABEL TCET Linux install medium (x86_64, HTTP)
29+
LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
30+
INITRD ::/%INSTALL_DIR%/boot/intel-ucode.img,::/%INSTALL_DIR%/boot/amd-ucode.img,::/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
31+
APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/ cms_verify=y
32+
SYSAPPEND 3

syslinux/archiso_pxe.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
INCLUDE archiso_head.cfg
2+
3+
INCLUDE archiso_pxe-linux.cfg
4+
5+
INCLUDE archiso_tail.cfg

syslinux/archiso_sys-linux.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Main Boot Option for MBR systems
2+
LABEL arch64
3+
TEXT HELP
4+
Boot the TCET Linux install medium on BIOS.
5+
It allows you to install TCET Linux or perform system maintenance.
6+
ENDTEXT
7+
MENU LABEL TCET Linux install medium (x86_64, BIOS)
8+
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
9+
INITRD /%INSTALL_DIR%/boot/intel-ucode.img,/%INSTALL_DIR%/boot/amd-ucode.img,/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
10+
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% copytoram=n cow_spacesize=5G nouveau.modeset=1 radeon.modeset=1 i915.modeset=1 nvme_load=yes

syslinux/archiso_sys.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
INCLUDE archiso_head.cfg
2+
3+
DEFAULT arch64
4+
TIMEOUT 150
5+
6+
INCLUDE archiso_sys-linux.cfg
7+
8+
INCLUDE archiso_tail.cfg

syslinux/archiso_tail.cfg

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
LABEL existing
2+
TEXT HELP
3+
Boot an existing operating system.
4+
Press TAB to edit the disk and partition number to boot.
5+
ENDTEXT
6+
MENU LABEL Boot existing OS
7+
COM32 chain.c32
8+
APPEND hd0 0
9+
10+
# https://www.memtest.org/
11+
LABEL memtest
12+
MENU LABEL Run Memtest86+ (RAM test)
13+
LINUX /boot/memtest86+/memtest
14+
15+
# https://wiki.syslinux.org/wiki/index.php/Hdt_(Hardware_Detection_Tool)
16+
LABEL hdt
17+
MENU LABEL Hardware Information (HDT)
18+
COM32 hdt.c32
19+
APPEND modules_alias=hdt/modalias.gz pciids=hdt/pciids.gz
20+
21+
LABEL reboot
22+
TEXT HELP
23+
Reboot computer.
24+
The computer's firmware must support APM.
25+
ENDTEXT
26+
MENU LABEL Reboot
27+
COM32 reboot.c32
28+
29+
LABEL poweroff
30+
TEXT HELP
31+
Power off computer.
32+
The computer's firmware must support APM.
33+
ENDTEXT
34+
MENU LABEL Power Off
35+
COM32 poweroff.c32

syslinux/splash.png

75 KB
Loading

syslinux/syslinux.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
DEFAULT select
2+
3+
LABEL select
4+
COM32 whichsys.c32
5+
APPEND -pxe- pxe -sys- sys -iso- sys
6+
7+
LABEL pxe
8+
CONFIG archiso_pxe.cfg
9+
10+
LABEL sys
11+
CONFIG archiso_sys.cfg

0 commit comments

Comments
 (0)