Oops, don't mount the tmpfs twice when setting up the overlay

This commit is contained in:
Bruce Leidl 2017-10-16 04:12:16 +00:00
parent b6df74ee87
commit f9c737c200

View File

@ -59,7 +59,6 @@ static void move_mount(const char *source, const char *target) {
static void setup_overlay(void) { static void setup_overlay(void) {
mount_tmpfs("/tmp"); mount_tmpfs("/tmp");
mount("tmpfs", "/tmp", "tmpfs", 0, "mode=755");
do_mkdir("/tmp/ro"); do_mkdir("/tmp/ro");
do_mkdir("/tmp/rw"); do_mkdir("/tmp/rw");
mount_tmpfs("/tmp/rw"); mount_tmpfs("/tmp/rw");