r/linuxfromscratch • u/Mother-Collection-79 • Jul 29 '26
Linux from scratch on MacBook air M2
Hi everyone! I’ve just finished installing LFS and Hyprland on my MacBook. I’m new to this, and this was my first build. I’d like to ask a few things right away: do you have any tips for beginners to make things easier down the line? Also, I installed NetworkManager with the wpa_supplicant backend, but I’ve run into a problem where I can’t connect to secured networks (though I have no issues with open ones). A bit about the installation: I set up LFS as a secondary system alongside the Asahi Fedora remix, copying the kernel and part of the initramfs from there, so most drivers were already included. Thanks in advance for the help! Feel free to ask questions—I’ll answer everything. P.S. Sorry if my English is a bit off; I’m using Google Translate.
3
u/Patient_Act_9906 Jul 29 '26
That’s sick
2
u/exeis-maxus Jul 29 '26
I ditched wpa_supplicant for iwd since ~2015? Not sure if it’s supported on M2 … there are some security and crypto options that need to be turned on (on or as modules) in the kernel. Iwd daemon will check in launch and list the missing kernel options.
If I remember iwd only requires dbus and ell (embedded linux library).
2
u/Due-Celery4326 Jul 29 '26
I built mine with the intention of using it as my personal distro. If that's your case, I recommend using a program manager so you can perform updates and removals with more control, security, and practicality. But if it's just for study, have fun.
4
u/Fast_Ad_8005 Jul 29 '26
Impressive! Perhaps the most fun OS to ever be on an M2 MacBook Air.
1
u/codeasm Jul 29 '26
Congratulations 🎉 and eh, asahi initrsmfs? Are you using the right firmware for the wireless adapter? Id copy kernel config maybe, but not reuse their kernel or initrsmfs. You may be missing or miss match kernel modules
1
u/kajmpres Jul 29 '26
you can install other distros on asahi?
2
u/Pleasant_Echidna5394 Aug 16 '26
I'm interested in doing this as well!! How did you do it?!
1
u/ThingVisible2153 Jul 29 '26
You are GOD.
1
u/JG_2006_C Jul 30 '26
LFS on asahi impressed
1
u/Yaisho Jul 31 '26
Le meilleur des deux mondes. OS linux et hardware Apple 🙌
1
u/ANDREI25456 Jul 31 '26
Congrats on the project! : )) I run Gentoo on my M1 MacBook Air, but LFS natively on an M2 is next level!
1
u/CreativeStop1844 Aug 01 '26
W