dracut: add roadrunner2/macbook12-spi-driver on MacBook HW
This commit is contained in:
parent
c600b1b39c
commit
2df917e7a5
16
dracut/modules.d/90macbook12-spi-driver/module-setup.sh
Executable file
16
dracut/modules.d/90macbook12-spi-driver/module-setup.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/bash
|
||||
# Add roadrunner2/macbook12-spi-driver drivers to initramfs for supporting keyboard, touchpad, touchbar in the MacBooks.
|
||||
# Pre-requisite: these drivers need to be included in the Linux kernel package.
|
||||
|
||||
check() {
|
||||
grep -q ^MacBook /sys/devices/virtual/dmi/id/product_name || return 255
|
||||
}
|
||||
|
||||
installkernel() {
|
||||
hostonly='' instmods intel_lpss intel_lpss_pci spi_pxa2xx_platform spi_pxa2xx_pci applespi apple_ib_tb
|
||||
}
|
||||
|
||||
install() {
|
||||
echo "options apple_ib_tb fnmode=2" >> "${initdir}/etc/modprobe.d/macbook12-spi-driver.conf"
|
||||
echo "options applespi fnremap=1" >> "${initdir}/etc/modprobe.d/macbook12-spi-driver.conf"
|
||||
}
|
@ -211,6 +211,8 @@ chmod -x /etc/grub.d/10_linux
|
||||
%attr(0664,root,qubes) %config(noreplace) /etc/qubes-rpc/policy/qubes.repos.Disable
|
||||
# Dracut module
|
||||
/etc/dracut.conf.d/*
|
||||
%dir %{_dracutmoddir}/90macbook12-spi-driver
|
||||
%{_dracutmoddir}/90macbook12-spi-driver/*
|
||||
%dir %{_dracutmoddir}/90qubes-pciback
|
||||
%{_dracutmoddir}/90qubes-pciback/*
|
||||
%dir %{_dracutmoddir}/90extra-modules
|
||||
|
Loading…
Reference in New Issue
Block a user