mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-14 17:38:04 +00:00
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: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
ac7787080c
commit
466978b083
@ -690,10 +690,11 @@ static int setup_console(const struct lxc_rootfs *rootfs,
|
|||||||
if (!rootfs->path)
|
if (!rootfs->path)
|
||||||
return 0;
|
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)) {
|
if (access(path, F_OK)) {
|
||||||
WARN("rootfs specified but no console found");
|
WARN("rootfs specified but no console found at '%s'", path);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user