From 2bd05a7f6f17fd9a1371e792a314ba7eb678121d Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 27 Nov 2017 09:17:34 +0100 Subject: [PATCH] add x86_64 config and preset files --- etc/archboot/presets/x86_64 | 34 +++++++++ etc/archboot/x86_64.conf | 49 ++++++++++++ usr/share/archboot/bootloader/messages/x86_64 | 25 ++++++ usr/share/archboot/bootloader/x86_64.cfg | 76 +++++++++++++++++++ 4 files changed, 184 insertions(+) create mode 100644 etc/archboot/presets/x86_64 create mode 100644 etc/archboot/x86_64.conf create mode 100644 usr/share/archboot/bootloader/messages/x86_64 create mode 100644 usr/share/archboot/bootloader/x86_64.cfg diff --git a/etc/archboot/presets/x86_64 b/etc/archboot/presets/x86_64 new file mode 100644 index 000000000..bffa6fc5e --- /dev/null +++ b/etc/archboot/presets/x86_64 @@ -0,0 +1,34 @@ +# vim:set ft=sh: +# Created by Tobias Powalowski +# config file for mkisolinux + +# DEFAULT kernel boot options +KERNEL_BOOT_OPTIONS="cgroup_disable=memory rootdelay=10 rootfstype=ramfs" + +# mkinitcpio config file, defaulted to stock config file +MKINITCPIO_CONFIG="/etc/archboot/x86_64.conf" + +# kernel version, defaulted to build for runtime kernel +VERSION="$(uname -r)" + +# kernel image, defaulted to stock arch kernel +KERNEL="/boot/vmlinuz-linux" + +# boot message file +# blank by default arch-bootmessage hook will create it by default +APPENDBOOTMESSAGE="/usr/share/archboot/bootloader/messages/x86_64" +APPENDOPTIONSBOOTMESSAGE="/usr/share/archboot/bootloader/messages/append-options" + +# syslinux.cfg files to use +SYSLINUXCFG="/usr/share/archboot/bootloader/x86_64.cfg" + +# Background for menu +BACKGROUND=/usr/share/archboot/bootloader/background/splash.png + +# Prompt on boot, 1=yes 0=no +PROMPT="0" + +# Timeout, 30 seconds to fix usb keyboard issues +# 0 means wait for prompt +TIMEOUT="300" + diff --git a/etc/archboot/x86_64.conf b/etc/archboot/x86_64.conf new file mode 100644 index 000000000..a72882da3 --- /dev/null +++ b/etc/archboot/x86_64.conf @@ -0,0 +1,49 @@ +# vim:set ft=sh: +# Created by Tobias Powalowski +# For more information on how using mkinitcpio please refer to the main config file +# or check the wiki. +MODULES="" +BINARIES="" +FILES="" +# SETUP +# +# Please change the hooks only if you know what you are doing. +HOOKS="arch_kms udev arch_base arch_core_install arch_installer arch_bootmessage_x86_64 arch_tz arch_keymap \ +arch_acpi arch_motd arch_memtest arch_linux_firmware arch_intel_wireless \ +arch_hwdetect block memdisk arch_pcspkr arch_net arch_isdn pcmcia \ +arch_sound keyboard dmraid arch_devicemapper arch_mdadm mdadm_udev lvm2 arch_lvm2 \ +encrypt arch_cryptoloop btrfs arch_filesystems arch_remote arch_cpufreq arch_links arch_kexec arch_ppp arch_xl2tpd \ +arch_pppoe arch_grub arch_refind arch_efibootmgr arch_syslinux arch_iptables arch_pciutils arch_usbutils \ +arch_openvpn arch_vpnc arch_pptpclient arch_smartmontools arch_licenses arch_wireless arch_wireless_staging \ +arch_linux_atm arch_netctl arch_fsarchiver arch_vim arch_wipe arch_testdisk arch_ddrescue \ +arch_chntpw arch_weechat arch_nmap arch_tcpdump arch_speedtouch arch_openconnect arch_dnsmasq arch_platform \ +arch_hypervisor arch_dmidecode arch_wiki_lite arch_intel_ucode arch_wvdial \ +arch_usb_modeswitch arch_lockdown-ms arch_prebootloader arch_efivar net" + +### NETWORK SETUP +# the default install media creating process, uses latest files from svn! +# +# SVN SERVER +SVNSETUP="svn://svn.archlinux.org/packages/" + +# name of the release +ARCHVERSION="2k17-R1" + +###### LOCAL SETUP +# - only needed if you want to build custom install media +# - disabled by default you can ignore all these parameters below +# if you don't set LOCALSETUP="yes" +# +# - Use archboot-svn.sh to checkout svn tree +# - Set this switch to "yes" if you want a custom install media +LOCALSETUP="no" + +# enter here your custom/modified svn tree +SVNTREE="" + +# Use this for kernel >= 2.6.38 +#COMPRESSION="xz" +# Use this for 2.6.30 <= kernel <= 2.6.37 +#COMPRESSION="lzma" +# Use this for kernel < 2.6.30 +COMPRESSION="gzip" diff --git a/usr/share/archboot/bootloader/messages/x86_64 b/usr/share/archboot/bootloader/messages/x86_64 new file mode 100644 index 000000000..402ebf7da --- /dev/null +++ b/usr/share/archboot/bootloader/messages/x86_64 @@ -0,0 +1,25 @@ + + + + + + + + + + +Arch Linux +https://www.archlinux.org + + + + +@@BOOTLOADER@@ BOOT +Creation Tool: 'archboot' written by Tobias Powalowski + +ARCHBOOT INSTALLATION / RESCUEBOOT SYSTEM +Creation Date: @@DATE@@ +Release: @@RELEASENAME@@ +Boot kernel: @@KERNEL@@ +Architecture: x86_64 +RAM requirement to boot: 600 MB or greater diff --git a/usr/share/archboot/bootloader/x86_64.cfg b/usr/share/archboot/bootloader/x86_64.cfg new file mode 100644 index 000000000..f5c550128 --- /dev/null +++ b/usr/share/archboot/bootloader/x86_64.cfg @@ -0,0 +1,76 @@ +SERIAL 0 38400 +DEFAULT vesamenu.c32 +PROMPT @@PROMPT@@ +MENU TITLE Arch Linux (archboot) +MENU BACKGROUND splash.png +TIMEOUT @@TIMEOUT@@ + +F1 boot.msg +F2 options.msg + +MENU WIDTH 78 +MENU MARGIN 4 +MENU ROWS 10 +MENU VSHIFT 9 +MENU TIMEOUTROW 15 +MENU TABMSGROW 16 +MENU CMDLINEROW 17 +MENU HELPMSGROW 18 +MENU HELPMSGENDROW -1 + +# 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 + +LABEL help +TEXT HELP +For general information press F1 key. +For troubleshooting and other options press F2 key. +ENDTEXT +MENU LABEL Help + +LABEL arch64 +TEXT HELP +Boot the Arch Linux (x86_64) archboot medium. +It allows you to install Arch Linux or perform system maintenance. +ENDTEXT +MENU LABEL Boot Arch Linux (x86_64) +LINUX /boot/vmlinuz_x86_64 +APPEND @@KERNEL_BOOT_OPTIONS@@ +INITRD /boot/intel-ucode.img,/boot/initramfs_x86_64.img + +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 /boot/memtest + +LABEL hdt +MENU LABEL Run HDT (Hardware Detection Tool) +COM32 hdt.c32 + +LABEL reboot +MENU LABEL Reboot +COM32 reboot.c32 + +LABEL poweroff +MENU LABEL Poweroff +COM32 poweroff.c32 + +ONTIMEOUT arch64