Commit 2a22fa69 authored by topjohnwu's avatar topjohnwu

Fix removing modules from images

parent 1591f5a0
...@@ -443,6 +443,7 @@ static int prepare_img() { ...@@ -443,6 +443,7 @@ static int prepare_img() {
continue; continue;
snprintf(buf, PATH_MAX, "%s/%s/remove", MOUNTPOINT, entry->d_name); snprintf(buf, PATH_MAX, "%s/%s/remove", MOUNTPOINT, entry->d_name);
if (access(buf, F_OK) == 0) { if (access(buf, F_OK) == 0) {
snprintf(buf, PATH_MAX, "%s/%s", MOUNTPOINT, entry->d_name);
rm_rf(buf); rm_rf(buf);
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment