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] Build host kernel does not support EROFS causing version 2304 build failure #535

Closed s1204IT closed 1 year ago

s1204IT commented 1 year ago

Steps to reproduce/复现步骤

  1. Clean the working directory
  2. Re-clone repository
  3. Run ./scripts/run.sh
    • Using User Code

Expected behaviour/预期行为

The build finishies successfully without any errors

Actual behaviour/实际行为

An error occurred during 'Create EROFS images'.

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

e8d81271f3f39e7367057165c7df95c07c49eca6

Linux distribution info/Linux 发行版信息

Ubuntu 20.04 (WSL)

Windows version/Windows 版本

10.0.25346.1001

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type WIF --root-sol magisk --gapps-brand MindTheGapps --remove-amazon --magisk-ver debug INFO: Architecture: x64 INFO: Release Type: WIF INFO: Magisk Version: debug INFO: GApps Brand: MindTheGapps INFO: GApps Variant: pico INFO: Root Solution: magisk Build: RELEASE_TYPE=Insider Fast

Version requirement/版本要求

Logs/日志

[//]: <> (Don't modify above) ``` Generate Download Links Generating WSA download link: arch=x64 release_type=Insider Fast WSA Version=2304.40000.4.0 download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/1ee8f2d3-cfbe-4514-a83a-5aaadb44df5e?P1=1684026984&P2=404&P3=2&P4=lywa9z%2bhsBVqYPYte%2frZNGkYhq9raC0Qz%2buKZrNV4zlIUA1G4GHn%2fAcKS9qWLE8fBxWwWPW%2bMvoAXCfwlJUNlg%3d%3d path: ../download/Microsoft.VCLibs.140.00_x64.appx download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/fed812e4-5821-4c23-a5a4-dae0d9b2d6d7?P1=1684054605&P2=404&P3=2&P4=XqLMg6opEiflXifP7YM9cIGqbzwEvLDKRkjGRLlkeQ2RHGPNt%2f6Bxn1wOhrekh8yLZEaoGQEoX5q%2ffzD1onCCQ%3d%3d path: ../download/wsa-WIF.zip download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/3b0a2424-33b7-4f1b-8434-9dc37ddfff81?P1=1684027070&P2=404&P3=2&P4=KK4bFQ0CMxbS%2bpatGylyOHltsk7%2fZ2X83we6fY2Qh5%2f1Auems3DY98NczBfR4UFQZiZdBBGK9Cq1fj9fOKRa7w%3d%3d path: ../download/Microsoft.UI.Xaml.2.8_x64.appx download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/8a26c76e-5a63-42d5-9f7d-df053c273363?P1=1684027155&P2=404&P3=2&P4=JfJAw3aScSQVT2VpPKt0BbaP40T%2foelHN5TJlHyy847pvhwCz8KKsV%2fAj4b5ShsHsLg1KZEZ30dYCDYnXutAOg%3d%3d path: ../download/Microsoft.VCLibs.140.00.UWPDesktop_x64.appx Generating Magisk download link: release type=debug download link: https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@99853810619807f8b61c324fe70636a47e447419/app-debug.apk Generating MindTheGapps download link: arch=x64 variant=pico download link: https://downloads.sourceforge.net/project/wsa-mtg/x86_64/20230323/MindTheGapps-13.0.0-x86_64-20230323.zip Download Artifacts 05/14 10:07:03 [NOTICE] Downloading 6 item(s) [DL:19MiB][#5036be 272KiB/839KiB(32%)][#e035aa 3.8MiB/1.3GiB(0%)][#c9141f 368KiB/4.8MiB(7%)][#c6996b 272KiB 05/14 10:07:04 [NOTICE] ダウンロード完了: ../download/magisk-debug.zip 05/14 10:07:05 [NOTICE] ダウンロード完了: ../download/Microsoft.VCLibs.140.00_x64.appx [DL:21MiB][#e035aa 19MiB/1.3GiB(1%)][#c9141f 1.1MiB/4.8MiB(22%)][#c6996b 768KiB/6.3MiB(11%)][#b99a74 0B/0B] 05/14 10:07:05 [NOTICE] CUID#55 - Redirecting to https://jaist.dl.sourceforge.net/project/wsa-mtg/x86_64/20230323/MindTheGapps-13.0.0-x86_64-20230323.zip [DL:22MiB][#e035aa 63MiB/1.3GiB(4%)][#c9141f 2.5MiB/4.8MiB(53%)][#c6996b 1.8MiB/6.3MiB(28%)][#b99a74 448KiB 05/14 10:07:07 [NOTICE] CUID#57 - Redirecting to https://jaist.dl.sourceforge.net/project/wsa-mtg/x86_64/20230323/MindTheGapps-13.0.0-x86_64-20230323.zip [DL:22MiB][#e035aa 102MiB/1.3GiB(7%)][#c9141f 3.7MiB/4.8MiB(76%)][#c6996b 2.8MiB/6.3MiB(45%)][#b99a74 4.0Mi 05/14 10:07:09 [NOTICE] CUID#63 - Redirecting to https://jaist.dl.sourceforge.net/project/wsa-mtg/x86_64/20230323/MindTheGapps-13.0.0-x86_64-20230323.zip [DL:21MiB][#e035aa 135MiB/1.3GiB(9%)][#c9141f 4.6MiB/4.8MiB(95%)][#c6996b 4.0MiB/6.3MiB(64%)][#b99a74 9.3Mi 05/14 10:07:11 [NOTICE] CUID#61 - Redirecting to https://jaist.dl.sourceforge.net/project/wsa-mtg/x86_64/20230323/MindTheGapps-13.0.0-x86_64-20230323.zip 05/14 10:07:11 [NOTICE] ダウンロード完了: ../download/Microsoft.UI.Xaml.2.8_x64.appx [DL:20MiB][#e035aa 166MiB/1.3GiB(12%)][#c6996b 5.8MiB/6.3MiB(92%)][#b99a74 10MiB/188MiB(5%)] 05/14 10:07:13 [NOTICE] CUID#60 - Redirecting to https://jaist.dl.sourceforge.net/project/wsa-mtg/x86_64/20230323/MindTheGapps-13.0.0-x86_64-20230323.zip 05/14 10:07:14 [NOTICE] ダウンロード完了: ../download/Microsoft.VCLibs.140.00.UWPDesktop_x64.appx [DL:21MiB][#e035aa 204MiB/1.3GiB(14%)][#b99a74 13MiB/188MiB(7%)] 05/14 10:07:15 [NOTICE] CUID#62 - Redirecting to https://jaist.dl.sourceforge.net/project/wsa-mtg/x86_64/20230323/MindTheGapps-13.0.0-x86_64-20230323.zip [DL:20MiB][#e035aa 242MiB/1.3GiB(17%)][#b99a74 19MiB/188MiB(10%)] 05/14 10:07:17 [NOTICE] CUID#59 - Redirecting to https://jaist.dl.sourceforge.net/project/wsa-mtg/x86_64/20230323/MindTheGapps-13.0.0-x86_64-20230323.zip [DL:19MiB][#e035aa 266MiB/1.3GiB(19%)][#b99a74 33MiB/188MiB(17%)] 05/14 10:07:19 [NOTICE] CUID#58 - Redirecting to https://jaist.dl.sourceforge.net/project/wsa-mtg/x86_64/20230323/MindTheGapps-13.0.0-x86_64-20230323.zip [DL:21MiB][#e035aa 831MiB/1.3GiB(60%)][#b99a74 185MiB/188MiB(98%)] 05/14 10:07:56 [NOTICE] ダウンロード完了: ../download/MindTheGapps-x64-13.0.zip *** Download Progress Summary as of Sun May 14 10:08:04 2023 *** =========================================================================================================== [#e035aa 0.9GiB/1.3GiB(72%) CN:16 DL:20MiB ETA:18s] FILE: ../download/wsa-WIF.zip ----------------------------------------------------------------------------------------------------------- [#e035aa 1.3GiB/1.3GiB(99%) CN:1 DL:21MiB] 05/14 10:08:22 [NOTICE] ダウンロード完了: ../download/wsa-WIF.zip ダウンロード結果: gid |stat|avg speed |path/URI ======+====+===========+======================================================= 6478a3|OK | 14MiB/s|../download/magisk-debug.zip 5036be|OK | 468KiB/s|../download/Microsoft.VCLibs.140.00_x64.appx c9141f|OK | 620KiB/s|../download/Microsoft.UI.Xaml.2.8_x64.appx c6996b|OK | 609KiB/s|../download/Microsoft.VCLibs.140.00.UWPDesktop_x64.appx b99a74|OK | 3.6MiB/s|../download/MindTheGapps-x64-13.0.zip e035aa|OK | 17MiB/s|../download/wsa-WIF.zip 凡例: (OK):ダウンロード完了しました Extract WSA unzipping WsaPackage_2304.40000.4.0_x64_Release-Nightly.msix to /tmp/wsa-build-pICgj5HARF_/wsa unzipping from /tmp/wsa-build-pICgj5HARF_/wsa/WsaPackage_2304.40000.4.0_x64_Release-Nightly.msix Extract done Extract Magisk Magisk version: d0c93842 (26101) done Extract MindTheGapps Archive: ../download/MindTheGapps-x64-13.0.zip signed by SignApk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/app/PrebuiltExchange3Google/PrebuiltExchange3Google.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/etc/default-permissions/default-permissions-google.xml inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/etc/default-permissions/default-permissions-mtg.xml inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/etc/permissions/com.google.android.dialer.support.xml inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/etc/permissions/privapp-permissions-google-product.xml inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/etc/security/fsverity/gms_fsverity_cert.der inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/etc/sysconfig/d2d_cable_migration_feature.xml inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/etc/sysconfig/google-hiddenapi-package-allowlist.xml inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/etc/sysconfig/google.xml inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/etc/sysconfig/google_build.xml inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/framework/com.google.android.dialer.support.jar inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/lib/libjni_latinimegoogle.so inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/lib64/libjni_latinimegoogle.so inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/overlay/GmsOverlay.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/overlay/GmsSettingsProviderOverlay.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/priv-app/AndroidAutoStub/AndroidAutoStub.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/priv-app/GmsCore/GmsCore.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/priv-app/GoogleRestore/GoogleRestore.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/priv-app/Phonesky/Phonesky.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/product/priv-app/Velvet/Velvet.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/system_ext/etc/permissions/privapp-permissions-google-system-ext.xml inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/system_ext/priv-app/GoogleFeedback/GoogleFeedback.apk inflating: /tmp/wsa-build-pICgj5HARF_/gapps/system/system_ext/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk Extract done Convert vhdx to RAW image Convert vhdx to RAW image done Mount images mount: /dev/loop0 は /tmp/wsa-build-pICgj5HARF_/erofs にマウントされました。 mount: /dev/loop1 は /tmp/wsa-build-pICgj5HARF_/erofs/vendor にマウントされました。 mount: /dev/loop2 は /tmp/wsa-build-pICgj5HARF_/erofs/product にマウントされました。 mount: /dev/loop3 は /tmp/wsa-build-pICgj5HARF_/erofs/system_ext にマウントされました。 done Create overlayfs for EROFS mk_overlayfs: label system lowerdir=/tmp/wsa-build-pICgj5HARF_/erofs upperdir=/tmp/wsa-build-pICgj5HARF_/upper/system workdir=/tmp/wsa-build-pICgj5HARF_/worker/system merged=/tmp/wsa-build-pICgj5HARF_/system_root_merged mount: overlay は /tmp/wsa-build-pICgj5HARF_/system_root_merged にマウントされました。 mk_overlayfs: label vendor lowerdir=/tmp/wsa-build-pICgj5HARF_/erofs/vendor upperdir=/tmp/wsa-build-pICgj5HARF_/upper/system/vendor workdir=/tmp/wsa-build-pICgj5HARF_/worker/system/vendor merged=/tmp/wsa-build-pICgj5HARF_/system_root_merged/vendor mount: overlay は /tmp/wsa-build-pICgj5HARF_/system_root_merged/vendor にマウントされました。 mk_overlayfs: label product lowerdir=/tmp/wsa-build-pICgj5HARF_/erofs/product upperdir=/tmp/wsa-build-pICgj5HARF_/upper/system/product workdir=/tmp/wsa-build-pICgj5HARF_/worker/system/product merged=/tmp/wsa-build-pICgj5HARF_/system_root_merged/product mount: overlay は /tmp/wsa-build-pICgj5HARF_/system_root_merged/product にマウントされました。 mk_overlayfs: label system_ext lowerdir=/tmp/wsa-build-pICgj5HARF_/erofs/system_ext upperdir=/tmp/wsa-build-pICgj5HARF_/upper/system/system_ext workdir=/tmp/wsa-build-pICgj5HARF_/worker/system/system_ext merged=/tmp/wsa-build-pICgj5HARF_/system_root_merged/system_ext mount: overlay は /tmp/wsa-build-pICgj5HARF_/system_root_merged/system_ext にマウントされました。 Create overlayfs for EROFS done Remove Amazon Appstore done Add device administration features done Integrate Magisk /dev/fiuxladnjrageq(/.*)? u:object_r:magisk_file:s0 /data/adb/magisk(/.*)? u:object_r:magisk_file:s0 Load policy from: /tmp/wsa-build-pICgj5HARF_/system_root_merged/vendor/etc/selinux/precompiled_sepolicy Integrate Magisk done Add extra packages Add extra packages done Integrate MindTheGapps Load policy from: /tmp/wsa-build-pICgj5HARF_/system_root_merged/vendor/etc/selinux/precompiled_sepolicy Integrate MindTheGapps done Fix MindTheGapps prop fixing /tmp/wsa-build-pICgj5HARF_/system_root_merged/system/build.prop fixing /tmp/wsa-build-pICgj5HARF_/system_root_merged/vendor/build.prop fixing /tmp/wsa-build-pICgj5HARF_/system_root_merged/vendor/odm/etc/build.prop done Create EROFS images mkfs.erofs 1.0 mkfs.erofs: unrecognized option '--chunksize=4096' usage: [options] FILE DIRECTORY Generate erofs image from DIRECTORY to FILE, and [options] are: -zX[,Y] X=compressor (Y=compression level, optional) -d# set output message level to # (maximum 9) -x# set xattr tolerance to # (< 0, disable xattrs; default 2) -EX[,...] X=extended options -T# set a fixed UNIX timestamp # to all files --help display this help and exit Available compressors are: lz4hc, lz4 Build: an error has occurred, exit Cleanup Work Directory Cleanup Mount Directory umount: /tmp/wsa-build-pICgj5HARF_/erofs/product (/dev/loop2) をアンマウントしました umount: /tmp/wsa-build-pICgj5HARF_/erofs/vendor (/dev/loop1) をアンマウントしました umount: /tmp/wsa-build-pICgj5HARF_/erofs/system_ext (/dev/loop3) をアンマウントしました umount: /tmp/wsa-build-pICgj5HARF_/erofs (/dev/loop0) をアンマウントしました umount: /tmp/wsa-build-pICgj5HARF_/system_root_merged/product (overlay) をアンマウントしました umount: /tmp/wsa-build-pICgj5HARF_/system_root_merged/vendor (overlay) をアンマウントしました umount: /tmp/wsa-build-pICgj5HARF_/system_root_merged/system_ext (overlay) をアンマウントしました umount: /tmp/wsa-build-pICgj5HARF_/system_root_merged (overlay) をアンマウントしました Cleanup Download Directory ``` [//]: <> (Don't modify below)
Howard20181 commented 1 year ago

So actions/runner-images#7587 is useless

YT-Advanced commented 1 year ago

The kernel module linux-modules-extra-azure cannot support mounting EROFS, so it is useless to install it.

@Howard20181 I think the problem appear because the modules can't be loaded when installed. We need waiting until this pull merged https://github.com/actions/runner-images/pull/7610

Howard20181 commented 1 year ago

@Howard20181 I think the problem appear because the modules can't be loaded when installed. We need waiting until this pull merged actions/runner-images#7610

No, it is because CONFIG_EROFS_FS_ZIP is not config.

YT-Advanced commented 1 year ago

@Howard20181 I think the problem appear because the modules can't be loaded when installed. We need waiting until this pull merged actions/runner-images#7610

No, it is because CONFIG_EROFS_FS_ZIP is not config.

Hmm, so it is why the image cannot mount. But did anyone test mounting with libguestfs, I think it should work correct.

Howard20181 commented 1 year ago

Hmm, so it is why the image cannot mount. But did anyone test mounting with libguestfs, I think it should work correct.

Currently libguestfs does not support EROFS

YT-Advanced commented 1 year ago

Hmm, so it is why the image cannot mount. But did anyone test mounting with libguestfs, I think it should work correct.

Currently libguestfs does not support EROFS

Finished with erofuse. You can check this ones: https://github.com/YT-Advanced/WSA-Script/issues/44