restore presets

This commit is contained in:
Tobias Powalowski 2023-02-09 12:09:57 +01:00
parent fdb29da8ee
commit 2eb736c20e
18 changed files with 175 additions and 5 deletions

View file

@ -0,0 +1,9 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/aarch64.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/Image.gz"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,9 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/aarch64-init.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/Image.gz"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,9 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/aarch64-latest.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/Image.gz"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,9 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/aarch64-local.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/Image.gz"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,8 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/initial.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/vmlinuz-linux"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,9 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/riscv64.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/vmlinuz-linux"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,9 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/riscv64-init.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/vmlinuz-linux"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,9 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/riscv64-latest.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/vmlinuz-linux"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,9 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/riscv64-local.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/vmlinuz-linux"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,8 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/x86_64.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/vmlinuz-linux"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,8 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/x86_64-init.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/vmlinuz-linux"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,8 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/x86_64-latest.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/vmlinuz-linux"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,8 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# mkinitcpio config file, defaulted to stock config file
MKINITCPIO_CONFIG="/etc/archboot/x86_64-local.conf"
# kernel version, defaulted to build for runtime kernel
ALL_kver="/boot/vmlinuz-linux"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,29 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# 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=(archboot_init)
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
COMPRESSION="zstd"
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
# COMPRESSION_OPTIONS
# Additional options for the compressor
COMPRESSION_OPTIONS=(-19)
MODULES_DECOMPRESS="no"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -0,0 +1,29 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
# SPDX-License-Identifier: GPL-2.0-only
# 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=(archboot_init)
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
COMPRESSION="zstd"
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
# COMPRESSION_OPTIONS
# Additional options for the compressor
COMPRESSION_OPTIONS=(-19)
MODULES_DECOMPRESS="no"
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -45,7 +45,7 @@ _prepare_kernel_initramfs_files() {
source "${_PRESET}" source "${_PRESET}"
mkdir -p "${_ISODIR}"/EFI/{BOOT,TOOLS} mkdir -p "${_ISODIR}"/EFI/{BOOT,TOOLS}
mkdir -p "${_ISODIR}/boot" mkdir -p "${_ISODIR}/boot"
mkinitcpio -c "/etc/archboot/init.conf" -k "${ALL_kver}" -g "${_ISODIR}/boot/initramfs.img" || exit 1 mkinitcpio -c "/etc/archboot/init-${_ARCH}.conf" -k "${ALL_kver}" -g "${_ISODIR}/boot/init-${_ARCH}.img" || exit 1
#shellcheck disable=SC2154 #shellcheck disable=SC2154
mkinitcpio -c "${MKINITCPIO_CONFIG}" -k "${ALL_kver}" -g "${_ISODIR}/boot/initramfs-${_ARCH}.img" || exit 1 mkinitcpio -c "${MKINITCPIO_CONFIG}" -k "${ALL_kver}" -g "${_ISODIR}/boot/initramfs-${_ARCH}.img" || exit 1
# delete cachedir on archboot environment # delete cachedir on archboot environment

View file

@ -65,7 +65,7 @@ if [ ${grub_platform} == "pc" ]; then
menuentry "Archboot Arch Linux x86_64 - BIOS Mode" { menuentry "Archboot Arch Linux x86_64 - BIOS Mode" {
_menu_running _menu_running
linux /boot/vmlinuz-x86_64 rootfstype=ramfs console=ttyS0,115200 console=tty0 audit=0 linux /boot/vmlinuz-x86_64 rootfstype=ramfs console=ttyS0,115200 console=tty0 audit=0
initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs.img initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/init-x86_64.img
} }
menuentry "Memory Tester (memtest86+)" { menuentry "Memory Tester (memtest86+)" {
_menu_running _menu_running
@ -79,7 +79,7 @@ if [ ${grub_platform} == "efi" ]; then
menuentry "Archboot Arch Linux x86_64" { menuentry "Archboot Arch Linux x86_64" {
_menu_running _menu_running
linux /boot/vmlinuz-x86_64 rootfstype=ramfs console=ttyS0,115200 console=tty0 audit=0 linux /boot/vmlinuz-x86_64 rootfstype=ramfs console=ttyS0,115200 console=tty0 audit=0
initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs.img initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/init-x86_64.img
} }
_efi_shell _efi_shell
elif [ ${grub_cpu} == "arm64" ]; then elif [ ${grub_cpu} == "arm64" ]; then
@ -87,14 +87,14 @@ if [ ${grub_platform} == "efi" ]; then
menuentry "Archboot Arch Linux AA64" { menuentry "Archboot Arch Linux AA64" {
_menu_running _menu_running
linux /boot/Image-aarch64.gz rootfstype=ramfs nr_cpus=1 console=ttyAMA0,115200 console=tty0 loglevel=4 audit=0 linux /boot/Image-aarch64.gz rootfstype=ramfs nr_cpus=1 console=ttyAMA0,115200 console=tty0 loglevel=4 audit=0
initrd /boot/amd-ucode.img /boot/initramfs.img initrd /boot/amd-ucode.img /boot/init-aarch64.img
} }
elif [ ${grub_cpu} == "i386" ]; then elif [ ${grub_cpu} == "i386" ]; then
set default="Archboot Arch Linux x86_64 - EFI MIXED MODE" set default="Archboot Arch Linux x86_64 - EFI MIXED MODE"
menuentry "Archboot Arch Linux x86_64 - EFI MIXED MODE" { menuentry "Archboot Arch Linux x86_64 - EFI MIXED MODE" {
_menu_running _menu_running
linux /boot/vmlinuz-x86_64 rootfstype=ramfs _IA32_UEFI=1 console=ttyS0,115200 console=tty0 audit=0 linux /boot/vmlinuz-x86_64 rootfstype=ramfs _IA32_UEFI=1 console=ttyS0,115200 console=tty0 audit=0
initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs.img initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/init-x86_64.img
} }
_efi_shell _efi_shell
fi fi