Commit 158f9982 by Daniel Lezcano Committed by Daniel Lezcano

Do not chdir when daemonize

With the previous modifications, a temporary directory is created to mount the rootfs in order to have the system container to remount itself the '/' directory. But in case of daemonize, we change the directory, so when the rootfs is specified with a relative path, we can not access it. Don't chdir, as that will be done automatically later in the chroot setup. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 6a22713f
......@@ -183,8 +183,6 @@ int main(int argc, char *argv[])
open(my_args.log_file, O_RDONLY | O_CLOEXEC);
open(my_args.log_file, O_RDONLY | O_CLOEXEC);
}
chdir("/");
}
save_tty(&tios);
......
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