-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firmware: Add support for retrieving firmware from macOS Recovery Image #540
Conversation
@soopyc , you may want to consider this PR when updating nixos guide |
@soopyc , can you test this on nixos? |
@sharpenedblade , can you test on fedora? |
@NoaHimesaka1873 @Redecorating , can you check the code for Arch. I couldn't find a better way to get dmg2img from aur. |
That seems like the most sane way to install AUR package without helper. |
Nice! |
Sometimes python starts before mount completes
The macOS recovery image method occasionally fails with python showing error with wifi. I've noticed that symlinks are being affected in such cases, most probably due to bad support for hfsplus on Linux. The script shows a message to try again with some other macOS version in such cases. |
In case someone tests and it fails at 1st attempt, but succeeds on automatic retry, do share the no of retries. |
The script does not work OOTB (expected), but fortunately it's possible to temporarily make packages available to use with one of the following commands.
While possible, the notion of installing packages with commands is discouraged on NixOS so I personally think the script should halt when it detects both the distro and missing packages. Nevertheless, with this method the same thing about manually creating Instructions could be added to the package manager checks, and one can detect NixOS by checking if Minor nitpick - when creating temporary directories, prefixing them with something like |
I'll have to fix this thing first. Thanks for testing!
I'm not very sure what to put here.
|
Previously we were making python bit to directly rename firmware from the mounted image. This was causing failures for unknown reasons. Lets try copying the firmware to the work directory and make the script rename firmware from there
331e672
to
cad5b1b
Compare
I believe the bug has finally been fixed. Apparently if a temp directory had a "C" in its name, the lstrip command broke the code by removing "C" from the folder names in the wifi folder of source firmware. My previous assumption of broken symlinks was wrong. Still I need tests and feedbacks from more people. @soopyc , it would be nice if you could test, since you were able to reproduce the bug before. |
Thanks for figuring out the bug! I wouldn't have been able to figure that out myself without a few more days :P Anyways, I've tried running the script normally and forcing a |
Can you try running the way you did before, maybe there could be some other hidden bug. |
This way |
My bad, I just read your tried to run normally. |
Thanks for testing @soopyc ! |
Is anything nixos specific required over here? |
The only other NixOS specific thing is to check for |
You probably can then update your other pr to add instructions to run this way then. |
Also, 8f1e8bc |
Updated the wiki. Preview on https://adityagarg8.github.io/wiki/guides/wifi-bluetooth/ A review is required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just mention that you need a wired internet connection for method 4 This was already there, I didnt notice
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The part about NixOS could come in a later PR.
No description provided.