WSA-Community / WSAGAScript

Scripts to install Google Apps into a WSA image. Plus optional root
The Unlicense
3.57k stars 3.52k forks source link

cannot run 'apply.sh' #145

Open jkampich1411 opened 2 years ago

jkampich1411 commented 2 years ago

The error: "find: '/mnt/product/overlay': No such file or directory" occoures when I run "apply.sh".

Log output:

root@[redacted]:/mnt/c/WindowsSubsystemAndroid/WSAGAScript# ./apply.sh
Modifing build.prop for each image
-> fixing system
-> fixing vendor
-> fixing product
-> fixing system_ext
removing duplicate apps from system
Copying GApps files to system...
Applying root file ownership
Setting directory permissions
find: ‘/mnt/product/overlay’: No such file or directory
Setting file permissions
find: ‘/mnt/product/overlay’: No such file or directory
Applying SELinux security contexts to directories
find: ‘/mnt/product/overlay’: No such file or directory
Applying SELinux security contexts to files
find: ‘/mnt/product/overlay’: No such file or directory
Applying SELinux security contexts to props
Applying SELinux policy
!! Apply completed !!

There are no spaces in the file path.

Do you know what I should do?

irvinekyle commented 2 years ago

Yep I'm stuck at the same issue. Here's my log output. Running Ubuntu WSL

root@DESKTOP-65AIK1G:/mnt/c/WSA/WSAGAScript# sudo ./apply.sh
Modifing build.prop for each image
-> fixing system
-> fixing vendor
-> fixing product
-> fixing system_ext
removing duplicate apps from system
Copying GApps files to system...
Applying root file ownership
Setting directory permissions
Setting file permissions
Applying SELinux security contexts to directories
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/etc/permissions': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
Applying SELinux security contexts to files
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory
chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory
chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory
chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory
chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
Applying SELinux security contexts to props
chcon: failed to get security context of '/mnt/product/etc': No data available
Applying SELinux policy
!! Apply completed !!
root@DESKTOP-65AIK1G:/mnt/c/WSA/WSAGAScript#
ckoever commented 2 years ago

sudo su (yes i know) then retype that 3 commands extend_and.... appl... ... this worked for me

jkampich1411 commented 2 years ago

sudo su (yes i know)

This method still outputs the same error. Also, sudo su and sudo ./FILE result in the same thing as they both access the root user.