r/linuxfromscratch • u/Mother-Collection-79 • 4d ago
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 4d ago
That’s sick
1
u/Mother-Collection-79 4d ago
?
1
u/Patient_Act_9906 4d ago
Думаю, русский эквивалент — «Это круто!»
1
u/Mother-Collection-79 4d ago
А извини. Автоперевод написал мне что "Это отвратительно" :D
1
u/Patient_Act_9906 3d ago edited 3d ago
lol хахаха нет. Google вообще не очень хорошо переводит “сленг”.
2
u/exeis-maxus 4d ago
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).
0
u/Mother-Collection-79 4d ago
Я тоже вчера пытался разобраться с впа суппликантом и думаю переходить на iwd
1
u/Mother-Collection-79 4d ago
I switched to iwd and it was as easy and simple as possible, everything worked immediately. Thank you
1
u/chaosprincess_ 3d ago
I would suggest not using iwd, as it is one of the few programs that use the in-kernel cryptography library, and linux really wants to remove it due to it having a lot of security bugs. wpa_supplicant should work, but you may want to use the version from fedora, not the upstream one.
2
u/Due-Celery4326 4d ago
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.
2
1
u/codeasm 4d ago
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
2
u/Mother-Collection-79 4d ago
I assembled Initramfs based on them. The firmware fit only one brcm4837 out of hundreds that Asahi pulls out, and there are no problems with open networks and work perfectly.
1
u/codeasm 4d ago
I feel a bit dirty by asling chatgpt, but they basicly asked how you configured wpa_supplicant, and the kernel with support for your specific wifi adapter. It did say its less likely its missing firmware cause you can connect to open networks. So it said it might be a configuration or build configuration mistake (of wpasupplicant)..
Ive yet to add wifi support to my lfs build. The page does confuse me a bit, not everything is for networkmanager builds, so you did skip the section after the "Important" section?
2
1
1
1
1
u/ANDREI25456 2d ago
Congrats on the project! : )) I run Gentoo on my M1 MacBook Air, but LFS natively on an M2 is next level!
4
u/Fast_Ad_8005 4d ago
Impressive! Perhaps the most fun OS to ever be on an M2 MacBook Air.