No support for partitions w/o symlink in /system

This commit is contained in:
LoveSy
2023-03-04 02:19:51 +08:00
committed by John Wu
parent 9e07eb592c
commit 981ccabbef
2 changed files with 2 additions and 4 deletions

View File

@@ -283,9 +283,7 @@ void load_modules() {
if (!system->is_empty()) {
// Handle special read-only partitions
for (const char *part : { "/vendor", "/vendor_dlkm","/product",
"/system_ext", "/system_dlkm",
"/odm", "/odm_dlkm" }) {
for (const char *part : { "/vendor", "/product", "/system_ext" }) {
struct stat st{};
if (lstat(part, &st) == 0 && S_ISDIR(st.st_mode)) {
if (auto old = system->extract(part + 1)) {