Skip to content

REMOVE变量与system/product同时使用时挂载到错误的路径 #1261

Open
@Greyh4t

Description

@Greyh4t

Please check before submitting an issue

  • I have searched the issues and haven't found anything relevant
  • I will upload bugreport file in KernelSU Manager - Settings - Report log
  • I know how to reproduce the issue which may not be specific to my device

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

  • Device: xiaomi14
  • OS Version: HyperOS 1.0.28.0.UNCCNXM
  • KernelSU Version: 0.72(11413)
  • Kernel Version: 6.1.25-android14-11-g923d9e76856e

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions