-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
REMOVE变量与system/product同时使用时挂载到错误的路径 #1261
Comments
看了一下,问题应该是出在 KernelSU/userspace/ksud/src/installer.sh Line 316 in 1fad91a
$1 是 product ,这个命令就等效于mv -f $MODPATH/system/product $MODPATH/product && ln -sf ../$1 $MODPATH/system/product
如果 改成下面这样应该能修复这个bug |
改成 |
Please check before submitting an issue
Describe the bug
模块里面设置
REMOVE
变量,并且REMOVE
变量包含/product/
开头的路径,同时创建system/product/test_file
文件,打包后刷进去,test_file
会被错误地挂载到/product/product/test_file
,出现了两层product
目录,去模块目录下看到文件的路径是system/product/product/test_file
按照文档的的说明,如果要在
/product
替换文件,需要将文件放到system/product
目录下,所以两层product
应该是 bug 吧To Reproduce
这个是复现问题的模块
kernelsudebug.zip
Expected behavior
No response
Screenshots
No response
Logs
KernelSU_bugreport_2024-01-07_01_58.tar[1].gz
Device info
Additional context
No response
The text was updated successfully, but these errors were encountered: