LSPosed / MagiskOnWSALocal

Integrate Magisk root and Google Apps into WSA (Windows Subsystem for Android)
GNU Affero General Public License v3.0
9.6k stars 23.12k forks source link

[Bug] Failed mounting images #383

Closed giddisey closed 1 year ago

giddisey commented 1 year ago

Steps to reproduce/复现步骤

  1. Clone repo
  2. cd scripts
  3. ./run.sh
  4. Accept all defaults

Expected behaviour/预期行为

Should build successfully

Actual behaviour/实际行为

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

MagiskOnWSALocal commit full SHA/MagiskOnWSALocal 提交的完整哈希

b0e94d2ea36921a0a0d58f7199a619b212fe6f89

Linux distribution info/Linux 发行版信息

Under WSL -

allan@study:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy

Windows version/Windows 版本

22H2 build 19045.2546

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type retail --magisk-ver stable --gapps-brand MindTheGapps --gapps-variant pico --root-sol magisk --compress --compress-format 7z INFO: Architecture: x64 INFO: Release Type: retail INFO: Magisk Version: stable INFO: GApps Brand: MindTheGapps INFO: GApps Variant: pico INFO: Root Solution: magisk INFO: Compress Format: 7z Build: RELEASE_TYPE=Retail Generate Download Links Generating WSA download link: arch=x64 release_type=Retail WSA Version=2211.40000.11.0

Version requirement/版本要求

Logs/日志

``` COMMAND_LINE=--arch x64 --release-type retail --magisk-ver stable --gapps-brand MindTheGapps --gapps-variant pico --root-sol magisk --compress --compress-format 7z INFO: Architecture: x64 INFO: Release Type: retail INFO: Magisk Version: stable INFO: GApps Brand: MindTheGapps INFO: GApps Variant: pico INFO: Root Solution: magisk INFO: Compress Format: 7z Build: RELEASE_TYPE=Retail Generate Download Links Generating WSA download link: arch=x64 release_type=Retail WSA Version=2211.40000.11.0 download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/6f031e6b-f66d-4dee-8fe4-7f6f9a85cdc1?P1=1675963886&P2=404&P3=2&P4=bb3maNoxrziNe24wbMuxnrkK%2fWxT4%2beNvjd1HTr1XCAMNVKN1k7%2f5Yx3eY7oLIymwKYlFpjMF2nyvB2fr0ZQgw%3d%3d to /home/allan/MagiskOnWSALocal/download/wsa-retail.zip download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/82207876-51a4-4581-80d3-09369370aadc?P1=1675935870&P2=404&P3=2&P4=Kpqp%2bWQGx6O7MsT9ELYXcGYl5MREPo9g7ULjM4xTlcbsdId7V4tDyJ%2buITcGXPCyyrTODYVSNYak9rwuicvJRg%3d%3d to /home/allan/MagiskOnWSALocal/download/Microsoft.UI.Xaml_x64.appx Generating Magisk download link: release type=stable download link: https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@25.2/app-release.apk Generating MindTheGapps download link: arch=x64 variant=pico download link: https://downloads.sourceforge.net/project/wsa-mtg/x86_64/20230201/MindTheGapps-13.0.0-x86_64-20230201.zip Download Artifacts 02/09 17:31:15 [NOTICE] Downloading 5 item(s) 02/09 17:31:15 [NOTICE] GID#05710fbe7c77e641 - Download has already completed: /home/allan/MagiskOnWSALocal/download/wsa-retail.zip 02/09 17:31:15 [NOTICE] GID#feb2771355e3c2ac - Download has already completed: /home/allan/MagiskOnWSALocal/download/Microsoft.UI.Xaml_x64.appx 02/09 17:31:15 [NOTICE] Download complete: /home/allan/MagiskOnWSALocal/download/wsa-retail.zip 02/09 17:31:15 [NOTICE] Download complete: /home/allan/MagiskOnWSALocal/download/Microsoft.UI.Xaml_x64.appx 02/09 17:31:15 [NOTICE] GID#5f548af67c05e991 - Download has already completed: /home/allan/MagiskOnWSALocal/download/magisk-stable.zip 02/09 17:31:15 [NOTICE] Download complete: /home/allan/MagiskOnWSALocal/download/magisk-stable.zip [DL:0B][#8c8614 0B/0B][#97217d 0B/0B] 02/09 17:31:16 [NOTICE] CUID#11 - Redirecting to https://ixpeering.dl.sourceforge.net/project/wsa-mtg/x86_64/20230201/MindTheGapps-13.0.0-x86_64-20230201.zip 02/09 17:31:16 [NOTICE] CUID#7 - Redirecting to https://download.microsoft.com/download/4/7/c/47c6134b-d61f-4024-83bd-b9c9ea951c25/appx/Microsoft.VCLibs.x64.14.00.Desktop.appx 02/09 17:31:16 [NOTICE] GID#8c861413250fad6c - Download has already completed: /home/allan/MagiskOnWSALocal/download/Microsoft.VCLibs.x64.14.00.Desktop.appx 02/09 17:31:16 [NOTICE] Download complete: /home/allan/MagiskOnWSALocal/download/Microsoft.VCLibs.x64.14.00.Desktop.appx 02/09 17:31:16 [NOTICE] GID#97217d0adffe9d31 - Download has already completed: /home/allan/MagiskOnWSALocal/download/MindTheGapps-x64-13.0.zip 02/09 17:31:16 [NOTICE] Download complete: /home/allan/MagiskOnWSALocal/download/MindTheGapps-x64-13.0.zip Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= 05710f|OK | 0B/s|/home/allan/MagiskOnWSALocal/download/wsa-retail.zip feb277|OK | 0B/s|/home/allan/MagiskOnWSALocal/download/Microsoft.UI.Xaml_x64.appx 5f548a|OK | 0B/s|/home/allan/MagiskOnWSALocal/download/magisk-stable.zip 8c8614|OK | 0B/s|/home/allan/MagiskOnWSALocal/download/Microsoft.VCLibs.x64.14.00.Desktop.appx 97217d|OK | 0B/s|/home/allan/MagiskOnWSALocal/download/MindTheGapps-x64-13.0.zip Status Legend: (OK):download completed. Extract WSA unzipping to /tmp/wsa-build-9KGEHlOVsd_/wsa unzipping from /tmp/wsa-build-9KGEHlOVsd_/wsa/WsaPackage_2211.40000.11.0_x64_Release-Nightly.msix Extract done Extract Magisk Magisk version: 25.2 (25200) done Extract MindTheGapps Archive: ../download/MindTheGapps-x64-13.0.zip signed by SignApk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/app/PrebuiltExchange3Google/PrebuiltExchange3Google.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/etc/default-permissions/default-permissions-google.xml inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/etc/default-permissions/default-permissions-mtg.xml inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/etc/permissions/com.google.android.dialer.support.xml inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/etc/permissions/privapp-permissions-google-product.xml inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/etc/security/fsverity/gms_fsverity_cert.der inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/etc/sysconfig/d2d_cable_migration_feature.xml inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/etc/sysconfig/google-hiddenapi-package-allowlist.xml inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/etc/sysconfig/google.xml inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/etc/sysconfig/google_build.xml inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/framework/com.google.android.dialer.support.jar inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/lib/libjni_latinimegoogle.so inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/lib64/libjni_latinimegoogle.so inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/overlay/GmsOverlay.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/overlay/GmsSettingsProviderOverlay.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/priv-app/AndroidAutoStub/AndroidAutoStub.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/priv-app/GmsCore/GmsCore.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/priv-app/GoogleRestore/GoogleRestore.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/priv-app/Phonesky/Phonesky.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/product/priv-app/Velvet/Velvet.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/system_ext/etc/permissions/privapp-permissions-google-system-ext.xml inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/system_ext/priv-app/GoogleFeedback/GoogleFeedback.apk inflating: /tmp/wsa-build-9KGEHlOVsd_/gapps/system/system_ext/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk Extract done Expand images system_ext: 99/128 files (1.0% non-contiguous), 44589/44723 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-9KGEHlOVsd_/wsa/x64/system_ext.img to 50008 (4k) blocks. The filesystem on /tmp/wsa-build-9KGEHlOVsd_/wsa/x64/system_ext.img is now 50008 (4k) blocks long. product: 132/144 files (0.0% non-contiguous), 74672/74897 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-9KGEHlOVsd_/wsa/x64/product.img to 191696 (4k) blocks. The filesystem on /tmp/wsa-build-9KGEHlOVsd_/wsa/x64/product.img is now 191696 (4k) blocks long. /: 2762/2816 files (0.4% non-contiguous), 224508/239777 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-9KGEHlOVsd_/wsa/x64/system.img to 250092 (4k) blocks. The filesystem on /tmp/wsa-build-9KGEHlOVsd_/wsa/x64/system.img is now 250092 (4k) blocks long. vendor: 1103/1120 files (0.5% non-contiguous), 61069/61260 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-9KGEHlOVsd_/wsa/x64/vendor.img to 64964 (4k) blocks. The filesystem on /tmp/wsa-build-9KGEHlOVsd_/wsa/x64/vendor.img is now 64964 (4k) blocks long. Expand images done Mount images mount: /tmp/wsa-build-9KGEHlOVsd_/system: mount failed: Operation not permitted. Build: an error has occurred, exit Cleanup Work Directory Cleanup Mount Directory umount: /tmp/wsa-build-9KGEHlOVsd_/system: not mounted. Cleanup Download Directory ```
Scrxtchy commented 1 year ago

Duplicate of #346? Are you using WSL 1 or 2?

giddisey commented 1 year ago

That was the problem. I had installed WSL2 but not converted my Ubuntu to WSL2. Working now thanks.