No /etc/initramfs-tools/modules directory

Hello :slight_smile:

Post your terminal/konsole in- and output as text (no pictures) from:


Without it, you will not receive any help from the Garuda team or your topic is likely to be closed without notice.

Before you open a new help request, read relevant sections of the Arch and Garuda wiki.
Thoroughly search your issue and any error messages in the forum and on the web.

Report everything you have already attempted to solve your problem.

I'm currently trying to follow this tutorial with little luck. My aim is to get the touchbar on the macbook pro from 1027 to be at least functional. I've gotten to the part with telling me to put

cat <<EOF | sudo tee -a /etc/initramfs-tools/modules
# drivers for keyboard+touchpad

in my terminal. at first I got the "Expected a string, but instead found a redirection" response from fish, I fixed it by changing the shell to bash. After this, I learned there wasn't even a /etc/initramfs-tools/modules directory, at least, not where I was looking. is the initramfs-tools/modules directory somewhere else, or is there another place I should put the names of these drivers?

My inxi from bash terminal in garuda:

Kernel: 5.16.16-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=c3207fed-eb6b-4d0d-8114-915493c66c41 rw [email protected]
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
Console: pty pts/1 wm: kwin_x11 DM: SDDM Distro: Garuda Linux
base: Arch Linux
Type: Laptop System: Apple product: MacBookPro14,3 v: 1.0 serial: <filter>
Chassis: type: 9 v: Mac-551B86E5744E2388 serial: <filter>
Mobo: Apple model: Mac-551B86E5744E2388 v: MacBookPro14,3
serial: <filter> UEFI: Apple v: 447. date: 12/12/2021
ID-1: BAT0 charge: 61.7 Wh (97.3%) condition: 63.4/76.7 Wh (82.7%)
volts: 12.9 min: 11.5 model: SMP bq20z451 type: Li-ion serial: N/A
status: Full cycles: 234
Info: model: Intel Core i7-7700HQ socket: U3E1 bits: 64 type: MT MCP
arch: Kaby Lake family: 6 model-id: 0x9E (158) stepping: 9 microcode: 0xEC
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
L3: 6 MiB desc: 1x6 MiB
Speed (MHz): avg: 3621 high: 3801 min/max: 800/3800 base/boost: 2700/2800
scaling: driver: intel_pstate governor: powersave volts: 0.9 V
ext-clock: 25 MHz cores: 1: 3591 2: 3704 3: 3552 4: 3540 5: 3586 6: 3600
7: 3601 8: 3801 bogomips: 44798
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: conditional, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Device-1: AMD Baffin [Radeon RX 460/560D / Pro
vendor: Apple driver: amdgpu v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 01:00.0
chip-ID: 1002:67ef class-ID: 0300
Display: server: X.Org v: compositor: kwin_x11 driver: X:
loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa gpu: amdgpu
display-ID: :0 screens: 1
Screen-1: 0 s-res: 2880x1800 s-dpi: 96 s-size: 762x476mm (30.0x18.7")
s-diag: 898mm (35.4")
Monitor-1: eDP res: 2880x1800 hz: 60 dpi: 221 size: 331x207mm (13.0x8.1")
diag: 390mm (15.4")
OpenGL: renderer: AMD Radeon RX Graphics (POLARIS11 DRM 3.44.0
5.16.16-zen1-1-zen LLVM 13.0.1)
v: 4.6 Mesa 21.3.7 direct render: Yes
Device-1: Intel 100 Series/C230 Series Family HD Audio
driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170
class-ID: 0403
Device-2: AMD Baffin HDMI/DP Audio [Radeon RX 550 640SP / 560/560X]
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
bus-ID: 01:00.1 chip-ID: 1002:aae0 class-ID: 0403
Sound Server-1: ALSA v: k5.16.16-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.48 running: yes
Device-1: Broadcom BCM43602 802.11ac Wireless LAN SoC vendor: Apple
driver: brcmfmac v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
bus-ID: 03:00.0 chip-ID: 14e4:43ba class-ID: 0280
IF: wlp3s0 state: down mac: <filter>
Device-2: Realtek RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter
type: USB driver: rtl88XXau bus-ID: 1-7:3 chip-ID: 0bda:8812 class-ID: 0000
serial: <filter>
IF: wlp0s20f0u7 state: up mac: <filter>
Local Storage: total: 233.76 GiB used: 30.19 GiB (12.9%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Apple model: SSD SM0256L
size: 233.76 GiB block-size: physical: 4096 B logical: 4096 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: CXS5EA0Q
temp: 36.9 C scheme: GPT
SMART: yes health: PASSED on: 19d 19h cycles: 60,441
read-units: 45,704,539 [23.4 TB] written-units: 45,553,120 [23.3 TB]
ID-1: / raw-size: 37.6 GiB size: 37.6 GiB (100.00%) used: 30.19 GiB (80.3%)
fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p4 maj-min: 259:4
ID-2: /boot/efi raw-size: 300.4 MiB size: 299.5 MiB (99.72%)
used: 1.5 MiB (0.5%) fs: vfat block-size: 4096 B dev: /dev/nvme0n1p3
maj-min: 259:3
ID-3: /home raw-size: 37.6 GiB size: 37.6 GiB (100.00%)
used: 30.19 GiB (80.3%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p4
maj-min: 259:4
ID-4: /var/log raw-size: 37.6 GiB size: 37.6 GiB (100.00%)
used: 30.19 GiB (80.3%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p4
maj-min: 259:4
ID-5: /var/tmp raw-size: 37.6 GiB size: 37.6 GiB (100.00%)
used: 30.19 GiB (80.3%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p4
maj-min: 259:4
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.52 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
System Temperatures: cpu: 66.0 C mobo: N/A gpu: amdgpu temp: 57.0 C
Fan Speeds (RPM): N/A
Processes: 308 Uptime: 2m wakeups: 2 Memory: 15.52 GiB
used: 2.11 GiB (13.6%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.2.0 Packages: note: see --pkg pacman: 2136 lib: 408
Shell: garuda-inxi (sudo) default: Bash v: 5.1.16 running-in: konsole
inxi: 3.3.13
Garuda (2.5.6-2):
System install date:     2022-03-11
Last full system update: 2022-03-22
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:

edit: fixed garuda-inxi

Have you posted it?

1 Like
🔴] × cat <<EOF | sudo tee -a /etc/initramfs-tools/modules
# drivers for keyboard+touchpad
[sudo] password for obviouslyace:
tee: /etc/initramfs-tools/modules: No such file or directory
# drivers for keyboard+touchpad

Again, the apple thing?
Post the garuda-inxi, if you don't want me to close this.


I was confused and thought it was that literal text "garuda inxi" had to be put at the beginning of the post. I realized it was the inxi command, here it is:

CPU: quad core Intel Core i7-7700HQ (-MT MCP-)
speed/min/max: 3545/800/3800 MHz Kernel: 5.16.16-zen1-1-zen x86_64 Up: 1h 45m
Mem: 4615.5/15897.0 MiB (29.0%) Storage: 233.76 GiB (12.9% used) Procs: 315
Shell: Bash inxi: 3.3.13

I'm not sure what this is about?

If you don't want to give answers here, no one can help you.

No one here is in the mood for guessing.

So we're closed until you edit your post.


Apart from luck, you need someone to convert this Fedora targeted tutorial to Archlinux relevant actions.
I have no Fedora experience, although I assume the modules needed to be inserted to the kernel should go in a file in /etc/modprobe.d/applebar.conf, one module in each line.
You also need to install dkms and your installed kernels' relevant headers, like linux-headers for linux kernel etc.

That was all from me. Maybe you get lucky and someone with Fedora knowledge is willing to assist you on this. :slightly_smiling_face:


Screw Fedora. Start your chase down the rabbit hole with Arch. Mac - ArchWiki