-
-
Notifications
You must be signed in to change notification settings - Fork 23k
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
[Bug] Build Error - Create system images #717
Comments
我也遇到这个问题了,最新版编译就会出现这个错误,你解决了吗? |
That is what it showed on mines when I just tried it to build WSA 2309.40000.10.0 as scripts/build.sh has been updated so the fix by @YT-Advanced from https://github.com/LSPosed/MagiskOnWSALocal/pull/620/files no longer works as those lines no longer exist. |
I am getting the same error. |
Same issue here
|
https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh Replace everything in your build.sh with the contents in the above URL, then try building again. I've reverted some code and added the changes I did in a PR that was declined. Until the upstream code is fixed, this should work. |
@sn-o-w Works great, thanks! |
Working now! |
How do I do this please. I am new to this |
I have been re-running it over and over again, keeps bringing the same error message. How can I execute the above recommendation. I am new to this as I was just trying to install an android interface on my system |
Kindly put me through on how to get this done as I am new here and don't know how |
Works great, thanks for coming to the rescue so quickly! |
I do not know how to do that
Kindly put me through step by step
Thanks
…On Thu, 26 Oct 2023, 10:19 am Almighty188, ***@***.***> wrote:
https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh
Replace everything in your build.sh with the contents in the above URL,
then try building again.
I've reverted some code and added the changes I did in a PR that was
declined.
Until the upstream code is fixed, this should work.
Works great, thanks for coming to the rescue so quickly!
—
Reply to this email directly, view it on GitHub
<#717 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDRC6ZTVVQMNPYRVZJ36UULYBITJTAVCNFSM6AAAAAA6ONGAC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQG4ZTENRRGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Thank
I tried opening the file but it was not opening hence I could not delete
the files in it.
In the process of trying, I mistakenly deleted the build.sh file
…On Thu, 26 Oct 2023, 12:57 pm sn-o-w, ***@***.***> wrote:
I have been re-running it over and over again, keeps bringing the same
error message. How can I execute the above recommendation. I am new to this
as I was just trying to install an android interface on my system
- In your local cloned repo, you should see multiple folders.
- Open the folder "scripts", then you should see the file "build.sh".
- Delete everything in your "build.sh" and replace the contents of it
with the contents you see inside the URL I posted earlier.
—
Reply to this email directly, view it on GitHub
<#717 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDRC6ZRXAIU4LVIQYUEK3Z3YBJF3BAVCNFSM6AAAAAA6ONGAC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQHE3DSMRYGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Replacing build.sh with your script builds successfully, but after installing WSA magisk fails to install the module (only tried lsposed): |
Interesting. The only module I have in Magisk is Lucky Patcher's patches to Android and it seems to show the module and even after rebooting Windows, it still shows the module. |
all right, I tried other modules still same problem, ugh |
A few moments ago, I installed LSPosed, and everything worked as expected, so dunno. 🤷♂️ Something may be wrong with your WSA instance. 🤔 If I were you, I would back up essential apps using Neo Backup, save the backup locally, delete WSA and its data and create a new instance of WSA + restore the data backed up earlier. |
Thanks for the advice, my WSA is a fresh install with no data. I successfully installed lsposed using kernelSU. don't know why exactly, I was able to successfully install lsposed using magisk two months ago. |
This seem to be the problem: vhdx_to_raw_img /tmp/wsa-build-sN90c7lLR0_/wsa/x64/system_ext.vhdx /tmp/wsa-build-sN90c7lLR0_/wsa/x64/system_ext.img vhdx_to_raw_img: command not found No idea where that command comes from - might be hallucinated from an AI? Google has only 3 results for it - all useless |
Looks to be same issue raised in discussion #731 right? |
workaround provided above by @sn-o-w worked on my setup, thanks. nice to now have ability to deploy and test new 2309.40000.8.0 based install given what was discussed about it bring to the table in https://blogs.windows.com/windows-insider/2023/10/19/update-to-windows-subsystem-for-android-on-windows-11-october-2023/. |
It didn't work for me, I don't know what I could be doing wrong, I restarted the wsl I practically reinstalled I had the stable version of the wsl now I have the latest one in pre-release and it continues with both the @sn-o-w repositoryWSL version: 2.0.7.0 product: 137/144 files (8.0% non-contiguous), 78387/78549 blocks /: 2800/2816 files (11.7% non-contiguous), 246011/246510 blocks vendor: 1096/1120 files (4.2% non-contiguous), 60420/60545 blocks Expand images done Mount images Cleanup Work Directory |
Hi, Thanks for the reply. How do I show the contents ? |
The Run.bat is should be in the 'WSA_2310.40000.2.0_x64_Release-Nightly-with-magisk-26.4(26400)-stable-MindThe Gapps-13.0-Removed-Amazon' folder/directory You can just ls 'WSA_2310.40000.2.0_x64_Release-Nightly-with-magisk-26.4(26400)-stable-MindThe Gapps-13.0-Removed-Amazon' and see what it shows... I may have typed the directory name wrong... |
I was looking at wrong location for some reason thinking it was in the tmp folder rather than the home folder 🙄. So I've found it, do I run Run.bat from the folder location in the Ubuntu directory / container, or do I need to copy the WSA folder from there to C: and run from there ? |
You run the Run.bat from the Windows side, hopefully there is actually a folder you created on the Windows side |
I copied it to the C: drive in to a folder called Android. All working. |
Thank you! It works! |
I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh
I even tried running build.sh but the result was the same. Does someone have any tips or anything else to do I might have missed? Also all the download avg speeds showed 0 (as shown in picture) |
I didn't check exactly what have changed but this solution works on Windows 11. |
You didn't replace build.sh with the contents of my file. Not a single line mentions "Not yet implemented" into the build.sh file within my fork. Make sure you replace correctly build.sh |
Oh I tried replacing the build.sh contents with the nano command, by selecting all deleting then pasting. I'll try again. |
It's December 11 now and this patch is still necessary ;-(. Why not merged yet? |
I managed to fix this!! |
Wow Great! |
No need to replace that build.sh, just pull and merge #620 locally
and then
|
Maybe try my simplier method #717 (comment) |
I thought that method no longer worked as I mentioned in #717 (comment) |
I‘ve tested building with latest main branch today, and PR #620 still work |
I didn't mean your method didn't work but still trying learn what each line does you mentioned does as far as git is concerned. Am I correct that the scripts/build.sh file is basically replaced with the one from #620 instead of the current one? |
I know the problem, but I think pasting and executing 3 git-commands is much more faster than replace with a new file, and the PR merged branch can be push to own repo for future build, which I think is much more efficient |
got mine to work with these commands (starting from cd scripts
rm build.sh
wget https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh
chmod +x build.sh
cd ..
./scripts/run.sh |
Thank you so much |
runned thhe script and got this:COMMAND_LINE=--arch x64 --release-type retail --root-sol magisk --gapps-brand MindTheGapps --remove-amazon --compress --magisk-ver stable --compress-format zip |
Work for me. You need to download the script directly in linux enviroment, such as wget in wsl. Or replace all "\r\n" with "\n" by text editor or tool after copy in windows. |
@sn-o-w Thanks! It Worked! |
Works 1-27-24 |
It worked for those lost, go at the top, see #717 (comment) |
I didn't analyze your changes but it worked for me. |
Thank you so much. This method will remain available until 2024. |
Steps to reproduce/复现步骤
Expected behaviour/预期行为
Successfully build
Actual behaviour/实际行为
No /output
MagiskOnWSALocal commit full SHA/MagiskOnWSALocal 提交的完整哈希
8548114
Linux distribution info/Linux 发行版信息
WSL2 - Ubuntu 22.04 LTS
Also tried in an actual baremetal Ubuntu 22.04 LTS
Windows version/Windows 版本
10.0.22621.2428
Build Parameters/构建参数
COMMAND_LINE=--arch x64 --release-type WIF --root-sol none --gapps-brand MindTheGapps --remove-amazon
INFO: Architecture: x64
INFO: Release Type: WIF
INFO: Magisk Version: stable
INFO: GApps Brand: MindTheGapps
INFO: GApps Variant: pico
INFO: Root Solution: none
Build: RELEASE_TYPE=Insider Fast
Version requirement/版本要求
Logs/日志
The text was updated successfully, but these errors were encountered: