[archiso2dual] Autodetect whether we can boot x86_64
Edited from original commit to adapt them to install_dir scheme. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
parent
85d2ddd762
commit
1a5209bef5
@ -5,6 +5,7 @@ install: all
|
|||||||
install -d -m 755 $(DESTDIR)/usr/share/archiso2dual/syslinux
|
install -d -m 755 $(DESTDIR)/usr/share/archiso2dual/syslinux
|
||||||
install -D -m 644 isomounts $(DESTDIR)/usr/share/archiso2dual/isomounts
|
install -D -m 644 isomounts $(DESTDIR)/usr/share/archiso2dual/isomounts
|
||||||
install -D -m 644 syslinux.cfg $(DESTDIR)/usr/share/archiso2dual/syslinux/syslinux.cfg
|
install -D -m 644 syslinux.cfg $(DESTDIR)/usr/share/archiso2dual/syslinux/syslinux.cfg
|
||||||
|
install -D -m 644 *.cfg $(DESTDIR)/usr/share/archiso2dual/syslinux/
|
||||||
install -D -m 644 removefiles.lst $(DESTDIR)/usr/share/archiso2dual/removefiles.lst
|
install -D -m 644 removefiles.lst $(DESTDIR)/usr/share/archiso2dual/removefiles.lst
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
@ -1,84 +1,12 @@
|
|||||||
DEFAULT vesamenu.c32
|
DEFAULT choose
|
||||||
PROMPT 0
|
PROMPT 0
|
||||||
MENU TITLE Arch Linux
|
|
||||||
MENU BACKGROUND /%INSTALL_DIR%/boot/splash.png
|
|
||||||
TIMEOUT 3000
|
|
||||||
|
|
||||||
# TODO: Replace these crappy messages with something useful
|
LABEL choose
|
||||||
F1 boot.txt
|
KERNEL ifcpu64.c32
|
||||||
F2 options.txt
|
APPEND have64 -- nohave64
|
||||||
F3 help.txt
|
|
||||||
|
|
||||||
MENU WIDTH 78
|
LABEL have64
|
||||||
MENU MARGIN 4
|
CONFIG syslinux_both.cfg
|
||||||
MENU ROWS 6
|
|
||||||
MENU VSHIFT 10
|
|
||||||
MENU TIMEOUTROW 13
|
|
||||||
MENU TABMSGROW 11
|
|
||||||
MENU CMDLINEROW 11
|
|
||||||
MENU HELPMSGROW 16
|
|
||||||
MENU HELPMSGENDROW 29
|
|
||||||
|
|
||||||
# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
|
LABEL nohave64
|
||||||
|
CONFIG syslinux_32only.cfg
|
||||||
MENU COLOR border 30;44 #40ffffff #a0000000 std
|
|
||||||
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
|
|
||||||
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
|
|
||||||
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
|
|
||||||
MENU COLOR help 37;40 #c0ffffff #a0000000 std
|
|
||||||
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
|
|
||||||
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
|
|
||||||
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
|
|
||||||
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
|
|
||||||
|
|
||||||
LABEL arch32
|
|
||||||
TEXT HELP
|
|
||||||
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/vmlinuz26
|
|
||||||
APPEND initrd=/%INSTALL_DIR%/boot/i686/archiso.img archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% rw_branch_size=75% locale=en_US.UTF-8
|
|
||||||
# Next line should be uncommented when prepare enviroment to boot from PXE.
|
|
||||||
#IPAPPEND 3
|
|
||||||
|
|
||||||
LABEL arch64
|
|
||||||
TEXT HELP
|
|
||||||
Boot the Arch Linux (x86_64) live medium. It allows you to install Arch Linux or
|
|
||||||
perform system maintenance.
|
|
||||||
ENDTEXT
|
|
||||||
MENU LABEL Boot Arch Linux (x86_64)
|
|
||||||
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz26
|
|
||||||
APPEND initrd=/%INSTALL_DIR%/boot/x86_64/archiso.img archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% rw_branch_size=75% locale=en_US.UTF-8
|
|
||||||
# Next line should be uncommented when prepare enviroment to boot from PXE.
|
|
||||||
#IPAPPEND 3
|
|
||||||
|
|
||||||
LABEL existing
|
|
||||||
TEXT HELP
|
|
||||||
Boot an existing operating system. Press TAB to edit the disk and partition
|
|
||||||
number to boot.
|
|
||||||
ENDTEXT
|
|
||||||
MENU LABEL Boot existing OS
|
|
||||||
COM32 chain.c32
|
|
||||||
APPEND hd0 0
|
|
||||||
|
|
||||||
# http://www.memtest.org/
|
|
||||||
LABEL memtest
|
|
||||||
MENU LABEL Run Memtest86+ (RAM test)
|
|
||||||
LINUX /%INSTALL_DIR%/boot/memtest
|
|
||||||
|
|
||||||
# http://hdt-project.org/
|
|
||||||
LABEL hdt
|
|
||||||
MENU LABEL Hardware Information (HDT)
|
|
||||||
COM32 hdt.c32
|
|
||||||
APPEND modules_alias=hdt/modalias.gz pciids=hdt/pciids.gz
|
|
||||||
|
|
||||||
LABEL reboot
|
|
||||||
MENU LABEL Reboot
|
|
||||||
COM32 reboot.c32
|
|
||||||
|
|
||||||
LABEL poweroff
|
|
||||||
MENU LABEL Power Off
|
|
||||||
COMBOOT poweroff.com
|
|
||||||
|
|
||||||
ONTIMEOUT arch32
|
|
||||||
|
3
archiso2dual/syslinux_32only.cfg
Normal file
3
archiso2dual/syslinux_32only.cfg
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
INCLUDE syslinux_head.cfg
|
||||||
|
INCLUDE syslinux_arch32.cfg
|
||||||
|
INCLUDE syslinux_tail.cfg
|
10
archiso2dual/syslinux_arch32.cfg
Normal file
10
archiso2dual/syslinux_arch32.cfg
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
LABEL arch32
|
||||||
|
TEXT HELP
|
||||||
|
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/vmlinuz26
|
||||||
|
APPEND initrd=/%INSTALL_DIR%/boot/i686/archiso.img archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% rw_branch_size=75% locale=en_US.UTF-8
|
||||||
|
# Next line should be uncommented when prepare enviroment to boot from PXE.
|
||||||
|
#IPAPPEND 3
|
10
archiso2dual/syslinux_arch64.cfg
Normal file
10
archiso2dual/syslinux_arch64.cfg
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
LABEL arch64
|
||||||
|
TEXT HELP
|
||||||
|
Boot the Arch Linux (x86_64) live medium. It allows you to install Arch Linux or
|
||||||
|
perform system maintenance.
|
||||||
|
ENDTEXT
|
||||||
|
MENU LABEL Boot Arch Linux (x86_64)
|
||||||
|
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz26
|
||||||
|
APPEND initrd=/%INSTALL_DIR%/boot/x86_64/archiso.img archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% rw_branch_size=75% locale=en_US.UTF-8
|
||||||
|
# Next line should be uncommented when prepare enviroment to boot from PXE.
|
||||||
|
#IPAPPEND 3
|
4
archiso2dual/syslinux_both.cfg
Normal file
4
archiso2dual/syslinux_both.cfg
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
INCLUDE syslinux_head.cfg
|
||||||
|
INCLUDE syslinux_arch32.cfg
|
||||||
|
INCLUDE syslinux_arch64.cfg
|
||||||
|
INCLUDE syslinux_tail.cfg
|
32
archiso2dual/syslinux_head.cfg
Normal file
32
archiso2dual/syslinux_head.cfg
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
DEFAULT vesamenu.c32
|
||||||
|
PROMPT 0
|
||||||
|
MENU TITLE Arch Linux
|
||||||
|
MENU BACKGROUND /%INSTALL_DIR%/boot/splash.png
|
||||||
|
TIMEOUT 3000
|
||||||
|
|
||||||
|
# TODO: Replace these crappy messages with something useful
|
||||||
|
F1 boot.txt
|
||||||
|
F2 options.txt
|
||||||
|
F3 help.txt
|
||||||
|
|
||||||
|
MENU WIDTH 78
|
||||||
|
MENU MARGIN 4
|
||||||
|
MENU ROWS 7
|
||||||
|
MENU VSHIFT 10
|
||||||
|
MENU TIMEOUTROW 13
|
||||||
|
MENU TABMSGROW 11
|
||||||
|
MENU CMDLINEROW 11
|
||||||
|
MENU HELPMSGROW 16
|
||||||
|
MENU HELPMSGENDROW 29
|
||||||
|
|
||||||
|
# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
|
||||||
|
|
||||||
|
MENU COLOR border 30;44 #40ffffff #a0000000 std
|
||||||
|
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
|
||||||
|
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
|
||||||
|
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
|
||||||
|
MENU COLOR help 37;40 #c0ffffff #a0000000 std
|
||||||
|
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
|
||||||
|
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
|
||||||
|
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
|
||||||
|
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
|
29
archiso2dual/syslinux_tail.cfg
Normal file
29
archiso2dual/syslinux_tail.cfg
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
LABEL existing
|
||||||
|
TEXT HELP
|
||||||
|
Boot an existing operating system. Press TAB to edit the disk and partition
|
||||||
|
number to boot.
|
||||||
|
ENDTEXT
|
||||||
|
MENU LABEL Boot existing OS
|
||||||
|
COM32 chain.c32
|
||||||
|
APPEND hd0 0
|
||||||
|
|
||||||
|
# http://www.memtest.org/
|
||||||
|
LABEL memtest
|
||||||
|
MENU LABEL Run Memtest86+ (RAM test)
|
||||||
|
LINUX /%INSTALL_DIR%/boot/memtest
|
||||||
|
|
||||||
|
# http://hdt-project.org/
|
||||||
|
LABEL hdt
|
||||||
|
MENU LABEL Hardware Information (HDT)
|
||||||
|
COM32 hdt.c32
|
||||||
|
APPEND modules_alias=hdt/modalias.gz pciids=hdt/pciids.gz
|
||||||
|
|
||||||
|
LABEL reboot
|
||||||
|
MENU LABEL Reboot
|
||||||
|
COM32 reboot.c32
|
||||||
|
|
||||||
|
LABEL poweroff
|
||||||
|
MENU LABEL Power Off
|
||||||
|
COMBOOT poweroff.com
|
||||||
|
|
||||||
|
ONTIMEOUT arch32
|
Loading…
Reference in New Issue
Block a user