#!/usr/bin/env bash # SPDX-License-Identifier: GPL-2.0-only # Created by Tobias Powalowski build () { ### add pcspkr add_module "pcspkr" ### add init modules map add_module zram? btrfs? zstd? libcrc32c? ### keyboard modules add_all_modules -f '_cs|ssb-hcd' '/usb/host' add_all_modules '/hid/hid-(alps|apple|asus|belkin|cherry|chicony|corsair|elan|hyperv|kensignton|lenovo|logitech|magicmouse|microsoft|razer|redragon|roccat|samsung|sony|speedlink|steelseries)' add_module 'usbhid' add_all_modules -f 'parkbd' '/input/serio|keyboard/(applespi|atkbd)' add_all_modules -f '9pnet|bluetooth|fs' 'virtio' ### 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 <