Commit 466978b0 by Daniel Lezcano Committed by Daniel Lezcano

use the rootfs mount point for the console

The rootfs is always located in the mount point now, let's use it. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent ac778708
......@@ -690,10 +690,11 @@ static int setup_console(const struct lxc_rootfs *rootfs,
if (!rootfs->path)
return 0;
snprintf(path, sizeof(path), "%s/dev/console", rootfs->path);
snprintf(path, sizeof(path), "%s/dev/console",
rootfs->mount ? rootfs->mount : LXCROOTFSMOUNT);
if (access(path, F_OK)) {
WARN("rootfs specified but no console found");
WARN("rootfs specified but no console found at '%s'", path);
return 0;
}
......
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