]> git.proxmox.com Git - pve-container.git/commit
setup: more general approach to tty paths
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 9 Dec 2016 07:08:11 +0000 (08:08 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 9 Dec 2016 07:08:11 +0000 (08:08 +0100)
commit5e84bdc8a42963e73a6463c61b290e6c50a9c763
tree1cb7bea6e11d921fccfb4a72a5cfe205c933bae1
parenta87b0c655d649fef46a9451bf99be03dd79ab743
setup: more general approach to tty paths

Unprivileged containers always use an empty lxc.devttydir
option (iow. don't use the /dev/lxc/ subdirectory).
Alpine and Gentoo don't support it in general.

Define a devttydir() sub in Setup::Base which by default
returns "lxc/" or an empty string depending on whether it is
an unprivileged container. Gentoo and Alpine override it
with one which always returns an empty string.
src/PVE/LXC/Setup/Alpine.pm
src/PVE/LXC/Setup/ArchLinux.pm
src/PVE/LXC/Setup/Base.pm
src/PVE/LXC/Setup/CentOS.pm
src/PVE/LXC/Setup/Debian.pm
src/PVE/LXC/Setup/Gentoo.pm
src/PVE/LXC/Setup/SUSE.pm
src/PVE/LXC/Setup/Ubuntu.pm