Skip to content
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

Closed
1 task done
tymondouglas opened this issue Oct 24, 2023 · 57 comments
Closed
1 task done

[Bug] Build Error - Create system images #717

tymondouglas opened this issue Oct 24, 2023 · 57 comments
Labels
bug Something isn't working

Comments

@tymondouglas
Copy link

Steps to reproduce/复现步骤

  1. Clone repository
  2. Attempt to build an image
  3. Error during build

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/版本要求

  • I am using latest commit of MagiskOnWSALocal/我正在使用最新 commit 的版本

Logs/日志

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
Generate Download Links
Generating WSA download link: arch=x64 release_type=Insider Fast

WSA Build Version=2309.40000.10.0

download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/28edaebf-8019-4844-ba32-8ab019bc9391?P1=1698187558&P2=404&P3=2&P4=YsmHaAn9n8B2%2fcDWUfXa7jAD3DgIOAS294Bm2Lyp5I6P74qYmSEKnWDh9ZJPA1pBu6SkURoViPrBzY3BA9tmEw%3d%3d
path: ../download/Microsoft.VCLibs.140.00_x64.appx

download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/986a8270-404c-4470-871d-5c4090dcaa79?P1=1698187681&P2=404&P3=2&P4=BTPuGo0cTaRPZclicjZR8OwqyNdbDXra84PEKxxlrPNZ%2ffvSxWO%2fJrW8xyPRj4kTKaJERduhRZmaVgOyu6HaWA%3d%3d
path: ../download/Microsoft.VCLibs.140.00.UWPDesktop_x64.appx

download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/21a6f30d-0ec0-46da-92cf-04e35cf18efc?P1=1698187688&P2=404&P3=2&P4=Zr7fLMjHgciuy4OhtDFoW9IUDimfBRkMzvuTUJ5YIauwqVQ0hGqOr0ceKYmtws4xdPLH8ugp6NhbRxHNuNQZhA%3d%3dpath: ../download/Microsoft.UI.Xaml.2.8_x64.appx

download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/865c8919-3247-45e3-95ee-323261875078?P1=1698215728&P2=404&P3=2&P4=DmTSbNc4oa8xtJHj7ChICaLDGWP1uyYUXJeuWBm1fU3z4OVJCp5sjraL2K%2bXLBYo93rmVbMGjOkWXuykxG%2bsqg%3d%3d
path: ../download/wsa-WIF.zip

Generating Magisk download link: release type=stable
download link: https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@26.3/app-release.apk
Generating MindTheGapps download link: arch=x64 variant=pico
download link: https://downloads.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zipDownload Artifacts

10/24 19:36:26 [NOTICE] Downloading 6 item(s)

10/24 19:36:27 [NOTICE] Download complete: ../download/Microsoft.VCLibs.140.00_x64.appx

10/24 19:36:27 [NOTICE] Download complete: ../download/Microsoft.UI.Xaml.2.8_x64.appx

10/24 19:36:27 [NOTICE] Download complete: ../download/Microsoft.VCLibs.140.00.UWPDesktop_x64.appx
[DL:50MiB][#8ff45a 29MiB/1.3GiB(2%)][#564a0d 3.7MiB/11MiB(31%)][#b02a17 0B/0B]
10/24 19:36:28 [NOTICE] CUID#35 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip
[DL:41MiB][#8ff45a 104MiB/1.3GiB(7%)][#564a0d 4.2MiB/11MiB(35%)][#b02a17 80KiB/188MiB(0%)]
10/24 19:36:29 [NOTICE] CUID#53 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip
[DL:40MiB][#8ff45a 178MiB/1.3GiB(12%)][#564a0d 4.3MiB/11MiB(36%)][#b02a17 640KiB/188MiB(0%)]
10/24 19:36:31 [NOTICE] CUID#59 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip
[DL:39MiB][#8ff45a 252MiB/1.3GiB(17%)][#564a0d 4.6MiB/11MiB(38%)][#b02a17 1.2MiB/188MiB(0%)]
10/24 19:36:33 [NOTICE] CUID#54 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip
[DL:39MiB][#8ff45a 327MiB/1.3GiB(23%)][#564a0d 4.7MiB/11MiB(39%)][#b02a17 1.9MiB/188MiB(1%)]
10/24 19:36:35 [NOTICE] CUID#58 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip
[DL:37MiB][#8ff45a 400MiB/1.3GiB(28%)][#564a0d 4.9MiB/11MiB(41%)][#b02a17 3.1MiB/188MiB(1%)]
10/24 19:36:37 [NOTICE] CUID#57 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip
[DL:37MiB][#8ff45a 474MiB/1.3GiB(33%)][#564a0d 5.1MiB/11MiB(42%)][#b02a17 4.0MiB/188MiB(2%)]
10/24 19:36:39 [NOTICE] CUID#56 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip
[DL:37MiB][#8ff45a 548MiB/1.3GiB(38%)][#564a0d 5.2MiB/11MiB(44%)][#b02a17 5.4MiB/188MiB(2%)]
10/24 19:36:41 [NOTICE] CUID#55 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip
[DL:37MiB][#8ff45a 1.3GiB/1.3GiB(99%)][#564a0d 8.1MiB/11MiB(67%)][#b02a17 43MiB/188MiB(23%)]
10/24 19:37:06 [NOTICE] Download complete: ../download/wsa-WIF.zip
[DL:37MiB][#564a0d 10MiB/11MiB(90%)][#b02a17 117MiB/188MiB(62%)]
10/24 19:37:08 [NOTICE] Download complete: ../download/magisk-stable.zip
[#b02a17 184MiB/188MiB(97%) CN:5 DL:17MiB]
10/24 19:37:10 [NOTICE] Download complete: ../download/MindTheGapps-x64-13.0.zip

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
736dd9|OK  |   9.4MiB/s|../download/Microsoft.VCLibs.140.00_x64.appx
7e30f9|OK  |    21MiB/s|../download/Microsoft.UI.Xaml.2.8_x64.appx
c52c1b|OK  |    28MiB/s|../download/Microsoft.VCLibs.140.00.UWPDesktop_x64.appx
8ff45a|OK  |    36MiB/s|../download/wsa-WIF.zip
564a0d|OK  |   297KiB/s|../download/magisk-stable.zip
b02a17|OK  |   4.6MiB/s|../download/MindTheGapps-x64-13.0.zip

Status Legend:
(OK):download completed.
Extract WSA
unzipping WsaPackage_2309.40000.10.0_x64_Release-Nightly.msix to /tmp/wsa-build-e3GKGe6ynJ_/wsa
unzipping from /tmp/wsa-build-e3GKGe6ynJ_/wsa/WsaPackage_2309.40000.10.0_x64_Release-Nightly.msix
Extract done

Extract Magisk
Magisk version: 26.3 (26300)
done

Extract MindTheGapps
Archive:  ../download/MindTheGapps-x64-13.0.zip
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/lib/libjni_latinimegoogle.so
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/overlay/GmsSettingsProviderOverlay.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/overlay/GmsOverlay.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/security/fsverity/gms_fsverity_cert.der
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/permissions/privapp-permissions-google-product.xml
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/permissions/com.google.android.dialer.support.xml
 extracting: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/init/gapps.rc
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/default-permissions/default-permissions-mtg.xml
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/default-permissions/default-permissions-google.xml
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/sysconfig/google_build.xml
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/sysconfig/google.xml
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/sysconfig/d2d_cable_migration_feature.xml
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/sysconfig/google-hiddenapi-package-allowlist.xml
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/lib64/libjni_latinimegoogle.so
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/app/PrebuiltExchange3Google/PrebuiltExchange3Google.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/AndroidAutoStub/AndroidAutoStub.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/Phonesky/Phonesky.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/GmsCore/GmsCore.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/Velvet/Velvet.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/GoogleRestore/GoogleRestore.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/framework/com.google.android.dialer.support.jar
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/system_ext/etc/permissions/privapp-permissions-google-system-ext.xml
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/system_ext/priv-app/GoogleFeedback/GoogleFeedback.apk
  inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/system_ext/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk
caution: excluded filename not matched:  system/product/priv-app/VelvetTitan/*
Extract done

Convert vhdx to RAW image
Convert vhdx to RAW image done

Mount images
mount: /dev/loop0 mounted on /tmp/wsa-build-e3GKGe6ynJ_/erofs.
mount: /dev/loop1 mounted on /tmp/wsa-build-e3GKGe6ynJ_/erofs/vendor.
mount: /dev/loop2 mounted on /tmp/wsa-build-e3GKGe6ynJ_/erofs/product.
mount: /dev/loop3 mounted on /tmp/wsa-build-e3GKGe6ynJ_/erofs/system_ext.
done

Create overlayfs
mk_overlayfs: label system
        lowerdir=/tmp/wsa-build-e3GKGe6ynJ_/erofs
        upperdir=/tmp/wsa-build-e3GKGe6ynJ_/upper/system
        workdir=/tmp/wsa-build-e3GKGe6ynJ_/worker/system
        merged=/tmp/wsa-build-e3GKGe6ynJ_/system_root_merged
mount: overlay mounted on /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged.
mk_overlayfs: label vendor
        lowerdir=/tmp/wsa-build-e3GKGe6ynJ_/erofs/vendor
        upperdir=/tmp/wsa-build-e3GKGe6ynJ_/upper/vendor
        workdir=/tmp/wsa-build-e3GKGe6ynJ_/worker/vendor
        merged=/tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor
mount: overlay mounted on /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor.
mk_overlayfs: label product
        lowerdir=/tmp/wsa-build-e3GKGe6ynJ_/erofs/product
        upperdir=/tmp/wsa-build-e3GKGe6ynJ_/upper/product
        workdir=/tmp/wsa-build-e3GKGe6ynJ_/worker/product
        merged=/tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/product
mount: overlay mounted on /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/product.
mk_overlayfs: label system_ext
        lowerdir=/tmp/wsa-build-e3GKGe6ynJ_/erofs/system_ext
        upperdir=/tmp/wsa-build-e3GKGe6ynJ_/upper/system_ext
        workdir=/tmp/wsa-build-e3GKGe6ynJ_/worker/system_ext
        merged=/tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/system_ext
mount: overlay mounted on /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/system_ext.
Create overlayfs done

Remove Amazon Appstore
done

Add device administration features
sed: can't read /cts/a \    <feature name="android.software.device_admin" />: No such file or directory
done

Add extra packages
Add extra packages done

Integrate MindTheGapps
Integrate MindTheGapps done

Fix MindTheGapps prop
fixing /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/system/build.prop
fixing /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor/build.prop
fixing /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor/odm/etc/build.prop
done

Create system images
mk_image_umount: /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor /tmp/wsa-build-e3GKGe6ynJ_/wsa/x64/vendor.img /tmp/wsa-build-e3GKGe6ynJ_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-e3GKGe6ynJ_/erofs/vendor unmounted
umount: /tmp/wsa-build-e3GKGe6ynJ_/erofs/system_ext unmounted
umount: /tmp/wsa-build-e3GKGe6ynJ_/erofs/product unmounted
umount: /tmp/wsa-build-e3GKGe6ynJ_/erofs unmounted
umount: /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged (overlay) unmounted
Cleanup Download Directory
@tymondouglas tymondouglas added the bug Something isn't working label Oct 24, 2023
@huang95-Q
Copy link

我也遇到这个问题了,最新版编译就会出现这个错误,你解决了吗?

@Almighty188
Copy link

Almighty188 commented Oct 25, 2023

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.

@Ivanwah91
Copy link

I am getting the same error.

@qwertytreq
Copy link

Same issue here

Create system images
mk_image_umount: /tmp/wsa-build-KdtqMS5oxv_/system_root_merged/vendor /tmp/wsa-build-KdtqMS5oxv_/wsa/x64/vendor.img /tmp/wsa-build-KdtqMS5oxv_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-KdtqMS5oxv_/erofs/vendor unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/erofs/system_ext unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/erofs/product unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/erofs unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/system_root_merged (overlay) unmounted
Cleanup Download Directory

@sn-o-w
Copy link
Contributor

sn-o-w commented Oct 25, 2023

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.

@qwertytreq
Copy link

@sn-o-w Works great, thanks!

@tymondouglas
Copy link
Author

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.

Working now!

@Tbeing
Copy link

Tbeing commented Oct 26, 2023

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.

How do I do this please. I am new to this

@Tbeing
Copy link

Tbeing commented Oct 26, 2023

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

@Tbeing
Copy link

Tbeing commented Oct 26, 2023

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.

Kindly put me through on how to get this done as I am new here and don't know how

@Almighty188
Copy link

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!

@Tbeing
Copy link

Tbeing commented Oct 26, 2023 via email

@sn-o-w
Copy link
Contributor

sn-o-w commented Oct 26, 2023

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.
  • Try again to build. It should work afterwards.

@Tbeing
Copy link

Tbeing commented Oct 26, 2023 via email

@Eric-Joker
Copy link

Eric-Joker commented Oct 27, 2023

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.

Replacing build.sh with your script builds successfully, but after installing WSA magisk fails to install the module (only tried lsposed):
After flushing you can find the module in the module list, after reboot the module disappears and it says "未安装任何模块" (no modules installed).
Have opened zygisk and there are no errors in the module installation log. Is it only me that has this problem?

@Almighty188
Copy link

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.

@Eric-Joker
Copy link

Eric-Joker commented Oct 27, 2023

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

@sn-o-w
Copy link
Contributor

sn-o-w commented Oct 27, 2023

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.

Replacing build.sh with your script builds successfully, but after installing WSA magisk fails to install the module (only tried lsposed): After flushing you can find the module in the module list, after reboot the module disappears and it says "未安装任何模块" (no modules installed). Have opened zygisk and there are no errors in the module installation log. Is it only me that has this problem?

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.

@Eric-Joker
Copy link

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.

@gitcnd
Copy link

gitcnd commented Nov 1, 2023

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

@myusrn
Copy link

myusrn commented Nov 2, 2023

Looks to be same issue raised in discussion #731 right?

@myusrn
Copy link

myusrn commented Nov 3, 2023

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/.

@andresayac
Copy link

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 repository

WSL version: 2.0.7.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25880.1000-230602-1350.main
Windows version: 10.0.22621.2506


product: 137/144 files (8.0% non-contiguous), 78387/78549 blocks
resize2fs 1.46.5 (30-Dec-2021)
Resizing the filesystem on /tmp/wsa-build-CFiFJu9xFo_/wsa/x64/product.img to 306932 (4k) blocks.
The filesystem on /tmp/wsa-build-CFiFJu9xFo_/wsa/x64/product.img is now 306932 (4k) blocks long.

/: 2800/2816 files (11.7% non-contiguous), 246011/246510 blocks
resize2fs 1.46.5 (30-Dec-2021)
Resizing the filesystem on /tmp/wsa-build-CFiFJu9xFo_/wsa/x64/system.img to 493020 (4k) blocks.
The filesystem on /tmp/wsa-build-CFiFJu9xFo_/wsa/x64/system.img is now 493020 (4k) blocks long.

vendor: 1096/1120 files (4.2% non-contiguous), 60420/60545 blocks
resize2fs 1.46.5 (30-Dec-2021)
Resizing the filesystem on /tmp/wsa-build-CFiFJu9xFo_/wsa/x64/vendor.img to 63105 (4k) blocks.
The filesystem on /tmp/wsa-build-CFiFJu9xFo_/wsa/x64/vendor.img is now 63105 (4k) blocks long.

Expand images done

Mount images
mount: /tmp/wsa-build-CFiFJu9xFo_/system_root_merged: mount failed: Operation not permitted.
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-CFiFJu9xFo_/erofs/vendor: no mount point specified.
umount: /tmp/wsa-build-CFiFJu9xFo_/erofs/system_ext: no mount point specified.
umount: /tmp/wsa-build-CFiFJu9xFo_/erofs/product: no mount point specified.
umount: /tmp/wsa-build-CFiFJu9xFo_/erofs: no mount point specified.
umount: /tmp/wsa-build-CFiFJu9xFo_/system_root_merged/vendor: no mount point specified.
umount: /tmp/wsa-build-CFiFJu9xFo_/system_root_merged/system_ext: no mount point specified.
umount: /tmp/wsa-build-CFiFJu9xFo_/system_root_merged/product: no mount point specified.
umount: /tmp/wsa-build-CFiFJu9xFo_/system_root_merged: not mounted.
Cleanup Download Directory
log-complete.txt

@DomN86
Copy link

DomN86 commented Nov 28, 2023

You didn't show the contents of what is in the 'WSA_2310.40000.2.0_x64_Release-Nightly-with-magisk-26.4(26400)-stable-MindThe Gapps-13.0-Removed-Amazon' folder/directory.

Hi, Thanks for the reply. How do I show the contents ?

@Almighty188
Copy link

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...

@DomN86
Copy link

DomN86 commented Nov 29, 2023

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

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 ?

@Almighty188
Copy link

Almighty188 commented Nov 29, 2023

You run the Run.bat from the Windows side, hopefully there is actually a folder you created on the Windows side

@DomN86
Copy link

DomN86 commented Nov 29, 2023

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

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 ?

I copied it to the C: drive in to a folder called Android. All working.

@hellowuyongjian
Copy link

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.

Thank you! It works!

@letrosrer
Copy link

I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh
I then ran run.sh and it still has this same problem:

Create system images
mk_image_umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor /tmp/wsa-build-ud9fIs5o1c_/wsa/x64/vendor.img /tmp/wsa-build-ud9fIs5o1c_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/vendor unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/system_ext unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/product unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged (overlay) unmounted
Cleanup Download Directory

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?
This is also my first time using Ubuntu/Linux so I'm very new to this.

Also all the download avg speeds showed 0 (as shown in picture)
0

@Mohsen7s
Copy link

Mohsen7s commented Dec 11, 2023

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.

I didn't check exactly what have changed but this solution works on Windows 11.

@sn-o-w
Copy link
Contributor

sn-o-w commented Dec 11, 2023

I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh I then ran run.sh and it still has this same problem:

Create system images
mk_image_umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor /tmp/wsa-build-ud9fIs5o1c_/wsa/x64/vendor.img /tmp/wsa-build-ud9fIs5o1c_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/vendor unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/system_ext unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/product unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged (overlay) unmounted
Cleanup Download Directory

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? This is also my first time using Ubuntu/Linux so I'm very new to this.

Also all the download avg speeds showed 0 (as shown in picture) 0

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

@letrosrer
Copy link

I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh I then ran run.sh and it still has this same problem:

Create system images
mk_image_umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor /tmp/wsa-build-ud9fIs5o1c_/wsa/x64/vendor.img /tmp/wsa-build-ud9fIs5o1c_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/vendor unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/system_ext unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/product unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged (overlay) unmounted
Cleanup Download Directory

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? This is also my first time using Ubuntu/Linux so I'm very new to this.
Also all the download avg speeds showed 0 (as shown in picture) 0

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.

@hugo-lyppens
Copy link

It's December 11 now and this patch is still necessary ;-(. Why not merged yet?

@letrosrer
Copy link

I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh I then ran run.sh and it still has this same problem:

Create system images
mk_image_umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor /tmp/wsa-build-ud9fIs5o1c_/wsa/x64/vendor.img /tmp/wsa-build-ud9fIs5o1c_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/vendor unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/system_ext unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/product unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged (overlay) unmounted
Cleanup Download Directory

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? This is also my first time using Ubuntu/Linux so I'm very new to this.
Also all the download avg speeds showed 0 (as shown in picture) 0

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.

I managed to fix this!!
Instead of changing build.sh with the nano command I opened it in Windows by using "explorer.exe ." and then changed it with notepad.
thank you so much!

@SherlockChiang
Copy link

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.

Wow Great!

@1552980358
Copy link

1552980358 commented Dec 12, 2023

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.

Wow Great!

No need to replace that build.sh, just pull and merge #620 locally

git pull origin main
git fetch origin pull/620/head:pr
git checkout pr

and then

./scripts/run.sh

@1552980358
Copy link

I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh I then ran run.sh and it still has this same problem:

Create system images
mk_image_umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor /tmp/wsa-build-ud9fIs5o1c_/wsa/x64/vendor.img /tmp/wsa-build-ud9fIs5o1c_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/vendor unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/system_ext unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/product unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged (overlay) unmounted
Cleanup Download Directory

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? This is also my first time using Ubuntu/Linux so I'm very new to this.
Also all the download avg speeds showed 0 (as shown in picture) 0

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.

I managed to fix this!! Instead of changing build.sh with the nano command I opened it in Windows by using "explorer.exe ." and then changed it with notepad. thank you so much!

Maybe try my simplier method #717 (comment)

@Almighty188
Copy link

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.

Wow Great!

No need to replace that build.sh, just pull and merge #620 locally

git pull origin main
git fetch origin pull/620/head:pr
git checkout pr

and then

./scripts/run.sh

I thought that method no longer worked as I mentioned in #717 (comment)

@1552980358
Copy link

1552980358 commented Dec 12, 2023

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.

Wow Great!

No need to replace that build.sh, just pull and merge #620 locally

git pull origin main
git fetch origin pull/620/head:pr
git checkout pr

and then

./scripts/run.sh

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

@Almighty188
Copy link

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?

@1552980358
Copy link

1552980358 commented Dec 12, 2023

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

@misterhaan
Copy link

got mine to work with these commands (starting from MagiskOnWSALocal path). it deletes the build.sh from the repo, downloads the patched one to replace it, allows the patched file to execute, then runs the run script again.

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

@intelQong
Copy link

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.

Thank you so much

@Skorpion96
Copy link

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.

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
./build.sh: line 20: $'\r': command not found
./build.sh: line 64: syntax error near unexpected token $'{\r'' '/build.sh: line 64: umount_clean() {
user@user-PC:~/MagiskOnWSALocal$

@ZHLONG-CN
Copy link

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.

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 ./build.sh: line 20: $'\r': command not found ./build.sh: line 64: syntax error near unexpected token $'{\r'' '/build.sh: line 64: umount_clean() { user@user-PC:~/MagiskOnWSALocal$

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.

@StefanCraft
Copy link

@sn-o-w Thanks! It Worked!

@MKWheezyG
Copy link

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 1-27-24

@coloboxp
Copy link

It worked

for those lost, go at the top, see #717 (comment)

@valfrid-ly
Copy link

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.

I didn't analyze your changes but it worked for me.

@Supuax
Copy link

Supuax commented Feb 7, 2024

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.

Thank you so much. This method will remain available until 2024.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests