Commit 4f4f54a0 authored by topjohnwu's avatar topjohnwu

Remove unused code

parent 12fda292
...@@ -101,17 +101,8 @@ void RootFSInit::setup_rootfs() { ...@@ -101,17 +101,8 @@ void RootFSInit::setup_rootfs() {
munmap(addr, size); munmap(addr, size);
} }
// Handle legacy overlays
int fd = open("/overlay", O_RDONLY | O_CLOEXEC);
if (fd >= 0) {
LOGD("Merge overlay folder\n");
mv_dir(fd, root);
close(fd);
rmdir("/overlay");
}
// Handle overlays // Handle overlays
fd = open("/overlay.d", O_RDONLY | O_CLOEXEC); int fd = open("/overlay.d", O_RDONLY | O_CLOEXEC);
if (fd >= 0) { if (fd >= 0) {
LOGD("Merge overlay.d\n"); LOGD("Merge overlay.d\n");
load_overlay_rc(fd); load_overlay_rc(fd);
......
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