split out kms

This commit is contained in:
Tobias Powalowski 2023-05-07 22:20:55 +02:00
parent d084654283
commit 38f1150eda
11 changed files with 55 additions and 37 deletions

View file

@ -5,8 +5,9 @@
#
# Please change the hooks only if you know what you are doing.
HOOKS=(archboot_common_modules archboot_base_common archboot_base_latest \
archboot_installer_common archboot_net_common archboot_remote archboot_kexec archboot_licenses)
HOOKS=(archboot_common_modules archboot_kms archboot_base_common \
archboot_base_latest archboot_installer_common archboot_net_common \
archboot_remote archboot_kexec archboot_licenses)
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression

View file

@ -5,7 +5,7 @@
#
# Please change the hooks only if you know what you are doing.
HOOKS=(archboot_common_modules archboot_base_common \
HOOKS=(archboot_common_modules archboot_kms archboot_base_common \
archboot_base_latest archboot_installer_common archboot_kexec archboot_licenses \
archboot_cache)

View file

@ -6,14 +6,15 @@
# Please change the hooks only if you know what you are doing.
HOOKS=(archboot_cache archboot_cache_cleanup archboot_firmware archboot_firmware_cleanup \
archboot_common_modules archboot_block_modules archboot_base_common archboot_base_common_cleanup archboot_base \
archboot_base_cleanup archboot_filesystems archboot_filesystems_cleanup archboot_net \
archboot_net_cleanup archboot_acpi archboot_cpufreq archboot_devicemapper archboot_hypervisor \
archboot_net_common archboot_platform archboot_wireless \
archboot_installer_common archboot_installer archboot_installer_cleanup archboot_tz \
archboot_keymap archboot_motd archboot_mdadm archboot_lvm2 archboot_remote archboot_kexec \
archboot_efibootmgr archboot_pciutils archboot_usbutils archboot_smartmontools \
archboot_licenses archboot_neovim archboot_secure_boot archboot_efivar archboot_lshw)
archboot_common_modules archboot_block_modules archboot_kms archboot_base_common \
archboot_base_common_cleanup archboot_base archboot_base_cleanup archboot_filesystems \
archboot_filesystems_cleanup archboot_net archboot_net_cleanup archboot_acpi \
archboot_cpufreq archboot_devicemapper archboot_hypervisor archboot_net_common \
archboot_platform archboot_wireless archboot_installer_common archboot_installer \
archboot_installer_cleanup archboot_tz archboot_keymap archboot_motd archboot_mdadm \
archboot_lvm2 archboot_remote archboot_kexec archboot_efibootmgr archboot_pciutils \
archboot_usbutils archboot_smartmontools archboot_licenses archboot_neovim \
archboot_secure_boot archboot_efivar archboot_lshw)
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression

View file

@ -5,7 +5,7 @@
#
# Please change the hooks only if you know what you are doing.
HOOKS=(archboot_firmware archboot_common_modules archboot_block_modules \
HOOKS=(archboot_firmware archboot_common_modules archboot_kms archboot_block_modules \
archboot_base_common archboot_base archboot_installer_common archboot_installer \
archboot_tz archboot_keymap archboot_acpi archboot_motd archboot_net_common \
archboot_net archboot_devicemapper archboot_mdadm archboot_lvm2 \

View file

@ -5,7 +5,7 @@
#
# Please change the hooks only if you know what you are doing.
HOOKS=(archboot_firmware archboot_common_modules archboot_block_modules \
HOOKS=(archboot_firmware archboot_common_modules archboot_kms archboot_block_modules \
archboot_base_common archboot_base archboot_installer_common archboot_installer \
archboot_tz archboot_keymap archboot_acpi archboot_motd archboot_net_common \
archboot_net archboot_devicemapper archboot_mdadm archboot_lvm2 \

View file

@ -5,7 +5,7 @@
#
# Please change the hooks only if you know what you are doing.
HOOKS=(archboot_common_modules archboot_base_common \
HOOKS=(archboot_common_modules archboot_kms archboot_base_common \
archboot_base_latest archboot_installer_common archboot_net_common archboot_remote \
archboot_kexec archboot_licenses)

View file

@ -5,8 +5,9 @@
#
# Please change the hooks only if you know what you are doing.
HOOKS=(archboot_common_modules archboot_base_common archboot_base_latest \
archboot_installer_common archboot_kexec archboot_licenses archboot_cache)
HOOKS=(archboot_common_modules archboot_kms archboot_base_common \
archboot_base_latest archboot_installer_common archboot_kexec \
archboot_licenses archboot_cache)
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression

View file

@ -6,15 +6,15 @@
# Please change the hooks only if you know what you are doing.
HOOKS=(archboot_cache archboot_cache_cleanup archboot_firmware archboot_firmware_cleanup \
archboot_common_modules archboot_block_moduels archboot_base_common archboot_base_common_cleanup archboot_base \
archboot_base_cleanup archboot_filesystems archboot_filesystems_cleanup archboot_net \
archboot_net_cleanup archboot_acpi archboot_cpufreq archboot_devicemapper \
archboot_hypervisor archboot_net_common archboot_dmidecode archboot_platform \
archboot_wireless archboot_installer_common archboot_installer \
archboot_installer_cleanup archboot_tz archboot_keymap archboot_motd archboot_mdadm \
archboot_lvm2 archboot_remote archboot_kexec archboot_efibootmgr archboot_pciutils \
archboot_usbutils archboot_smartmontools archboot_licenses archboot_neovim \
archboot_secure_boot archboot_efivar archboot_lshw)
archboot_common_modules archboot_block_modules archboot_kms archboot_base_common \
archboot_base_common_cleanup archboot_base archboot_base_cleanup archboot_filesystems \
archboot_filesystems_cleanup archboot_net archboot_net_cleanup archboot_acpi \
archboot_cpufreq archboot_devicemapper archboot_hypervisor archboot_net_common \
archboot_dmidecode archboot_platform archboot_wireless archboot_installer_common \
archboot_installer archboot_installer_cleanup archboot_tz archboot_keymap \
archboot_motd archboot_mdadm archboot_lvm2 archboot_remote archboot_kexec \
archboot_efibootmgr archboot_pciutils archboot_usbutils archboot_smartmontools \
archboot_licenses archboot_neovim archboot_secure_boot archboot_efivar archboot_lshw)
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression

View file

@ -5,7 +5,7 @@
#
# Please change the hooks only if you know what you are doing.
HOOKS=(archboot_firmware archboot_common_modules archboot_block_modules \
HOOKS=(archboot_firmware archboot_common_modules archboot_block_modules archboot_kms \
archboot_base_common archboot_base archboot_installer_common archboot_installer \
archboot_tz archboot_keymap archboot_acpi archboot_motd archboot_net_common \
archboot_net archboot_devicemapper archboot_mdadm archboot_lvm2 \

View file

@ -14,22 +14,12 @@ build ()
add_module 'usbhid'
add_all_modules -f 'parkbd' '/input/serio|keyboard/(applespi|atkbd)'
add_all_modules -f '9pnet|bluetooth|fs' 'virtio'
# add firmware files and licenses
map add_full_dir "/lib/firmware/amdgpu" "/lib/firmware/i915" "/lib/firmware/nvidia" \
"/lib/firmware/radeon" "/usr/share/licenses/linux-firmware"
### kmx modules
# AGP and DRM modules for GPUs
map add_all_modules '/drivers/char/agp/' '/drivers/gpu/drm/'
# modules that implement the privacy screen interface
# TODO: Replace with dynamic lookup of modules that depend on the drm_privacy_screen_register symbol
# See https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/issues/132
map add_all_modules 'chromeos_privacy_screen?' 'thinkpad_acpi?'
}
help ()
{
cat <<HELPEOF
This hook includes init, keyboard, kms and pcspkr support
This hook includes init, keyboard and pcspkr support
for an archboot image.
DO NOT remove this one unless you know what you're doing.
HELPEOF

View file

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
# add firmware files and licenses
map add_full_dir "/lib/firmware/amdgpu" "/lib/firmware/i915" "/lib/firmware/nvidia" \
"/lib/firmware/radeon" "/usr/share/licenses/linux-firmware"
### kmx modules
# AGP and DRM modules for GPUs
map add_all_modules '/drivers/char/agp/' '/drivers/gpu/drm/'
# modules that implement the privacy screen interface
# TODO: Replace with dynamic lookup of modules that depend on the drm_privacy_screen_register symbol
# See https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/issues/132
map add_all_modules 'chromeos_privacy_screen?' 'thinkpad_acpi?'
}
help ()
{
cat <<HELPEOF
This hook includes kms support for an archboot image.
HELPEOF
}
# vim: set ft=sh ts=4 sw=4 et: