From fd6bf0631320d9c8255ef0a286896e18c041540e Mon Sep 17 00:00:00 2001 From: Thore Sommer Date: Mon, 2 Dec 2024 12:18:04 +0100 Subject: [PATCH] Include modules in initramfs for T2 macs --- usr/share/initramfs-tools/hooks/t2-apple | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 usr/share/initramfs-tools/hooks/t2-apple diff --git a/usr/share/initramfs-tools/hooks/t2-apple b/usr/share/initramfs-tools/hooks/t2-apple new file mode 100755 index 0000000..5e48bc9 --- /dev/null +++ b/usr/share/initramfs-tools/hooks/t2-apple @@ -0,0 +1,23 @@ +#!/bin/sh + +PREREQ="" +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +# See https://wiki.t2linux.org/guides/postinstall/#make-modules-load-on-early-boot +manual_add_modules snd +manual_add_modules snd_pcm +manual_add_modules apple-bce + +exit 0