Fix removing modules from images

This commit is contained in:
topjohnwu 2017-08-17 02:19:14 +08:00
parent 1591f5a0ca
commit 2a22fa694e

View File

@ -443,6 +443,7 @@ static int prepare_img() {
continue;
snprintf(buf, PATH_MAX, "%s/%s/remove", MOUNTPOINT, entry->d_name);
if (access(buf, F_OK) == 0) {
snprintf(buf, PATH_MAX, "%s/%s", MOUNTPOINT, entry->d_name);
rm_rf(buf);
continue;
}