Searched refs:tty (Results 1 - 21 of 21) sorted by relevance

/lxc/src/tests/
H A Dlxc-test-checkpoint-restore35 lxc.tty = 0
/lxc/templates/
H A Dlxc-gentoo.in359 if [[ ${tty} < 6 ]]; then
360 local mindis=$(( ${tty} + 1 ))
363 printf " => main console + ${tty} ttys\n"
709 lxc.tty = ${tty}
726 [-s|--settings <name>] [-m|--mirror <gentoomirror>] [--tty <number>]
770 tty: number of tty (6 max) (currently: '${tty}')
780 tty
[all...]
H A Dlxc-debian.in50 # squeeze only has /dev/tty and /dev/tty0 by default,
52 for tty in $(seq 1 "$num_tty"); do
53 if [ ! -e "$rootfs/dev/tty$tty" ]; then
54 mknod "$rootfs/dev/tty$tty" c 4 "$tty"
72 $(for tty in $(seq 1 "$num_tty"); do echo "c${tty}:12345:respawn:/sbin/getty 38400 tty
[all...]
H A Dlxc-altlinux.in139 mknod -m 666 ${dev_path}/tty c 5 0
140 chown root:tty ${dev_path}/tty
150 chown root:tty ${dev_path}/ptmx
271 lxc.tty = 4
H A Dlxc-alpine.in281 mknod -m 620 dev/tty$i c 4 $i
282 chown 0:5 dev/tty$i # root:tty
285 mknod -m 666 dev/tty c 5 0
286 chown 0:5 dev/tty # root:tty
289 chown 0:5 dev/ptmx # root:tty
294 sed -i '/^tty[5-9]\:\:.*$/d' etc/inittab
H A Dlxc-download.in589 if [ -f ${LXC_ROOTFS}/etc/init/tty.conf ]; then
590 sed -i 's|mingetty|mingetty --nohangup|' ${LXC_ROOTFS}/etc/init/tty.conf
H A Dlxc-busybox.in102 for dev in tty console tty0 tty1 ram0 null urandom; do
106 mknod -m 666 tty c 5 0 || res=1
140 # and propose a shell on the tty, the last one is
347 lxc.tty = 1
H A Dlxc-centos.in293 initctl start tty TTY=console
324 mknod -m 666 ${dev_path}/tty c 5 0
335 # setup console and tty[1-4] for login. note that /dev/console and
336 # /dev/tty[1-4] will be symlinks to the ptys /dev/lxc/console and
337 # /dev/lxc/tty[1-4] so that package updates can overwrite the symlinks.
341 # allow root login on console, tty[1-4], and pts/0 for libvirt
354 sed -i 's|mingetty|mingetty --nohangup|' $rootfs_path/etc/init/tty.conf
H A Dlxc-sparclinux.in228 # setup console and tty[1-4] for login. note that /dev/console and
229 # /dev/tty[1-4] will be symlinks to the ptys /dev/lxc/console and
230 # /dev/lxc/tty[1-4] so that package updates can overwrite the symlinks.
234 # allow root login on console, tty[1-4], and pts/0 for libvirt
238 echo "lxc/tty$i" >>$container_rootfs/etc/securetty
246 if [ -f $container_rootfs/etc/init/tty.conf ]; then
247 sed -i 's|mingetty|mingetty --nohangup|' $container_rootfs/etc/init/tty.conf
413 mknod -m 666 $dev_path/tty c 5 0
424 tty tty0 tty1 tty2 tty3 tty4 full ;
H A Dlxc-openmandriva.in95 mknod -m 666 ${dev_path}/tty c 5 0
232 lxc.tty = 4
H A Dlxc-oracle.in160 # default config. Number should match lxc.tty
162 for i in 1 2 3 4 ; do ln -sf ../getty\@.service getty@tty${i}.service; done )
358 # setup console and tty[1-4] for login. note that /dev/console and
359 # /dev/tty[1-4] will be symlinks to the ptys /dev/lxc/console and
360 # /dev/lxc/tty[1-4] so that package updates can overwrite the symlinks.
364 # allow root login on console, tty[1-4], and pts/0 for libvirt
368 echo "lxc/tty$i" >>$container_rootfs/etc/securetty
376 if [ -f $container_rootfs/etc/init/tty.conf ]; then
377 sed -i 's|mingetty|mingetty --nohangup|' $container_rootfs/etc/init/tty.conf
392 # start a getty on /dev/console, /dev/tty[
[all...]
H A Dlxc-cirros.in124 lxc.tty = 4
H A Dlxc-fedora.in264 mknod -m 666 ${dev_path}/tty c 5 0
275 # setup console and tty[1-4] for login. note that /dev/console and
276 # /dev/tty[1-4] will be symlinks to the ptys /dev/lxc/console and
277 # /dev/lxc/tty[1-4] so that package updates can overwrite the symlinks.
281 # allow root login on console, tty[1-4], and pts/0 for libvirt
338 sed -i 's/ACTIVE_CONSOLES=.*$/ACTIVE_CONSOLES="\/dev\/console \/dev\/tty[1-4]"/' \
398 # default config. Number should match lxc.tty
400 for i in 1 2 3 4 ; do ln -sf ../getty\@.service getty@tty${i}.service; done )
H A Dlxc-slackware.in114 mknod -m 666 ${DEV}/tty c 5 0
H A Dlxc-ubuntu.in130 rm -f $rootfs/etc/init/tty{5,6}.conf
/lxc/src/lxc/tools/
H A Dlxc_usernsexec.c77 static void opentty(const char * tty, int which) { argument
80 if (tty[0] == '\0')
83 fd = open(tty, O_RDWR | O_NONBLOCK);
85 printf("WARN: could not reopen tty: %s\n", strerror(errno));
/lxc/src/python-lxc/examples/
H A Dapi_test.py167 container.console(tty=1)
/lxc/src/lxc/
H A Dconf.h174 * virtualizing a tty
187 * Defines the number of tty configured and contains the
268 * @tty : numbers of tty
276 * @tty_info : tty data
296 unsigned int tty; member in struct:lxc_conf
312 char *pty_names; // comma-separated list of lxc.tty pty names
H A Dstart.c471 ERROR("Failed to shift tty into container.");
843 /* Some init's such as busybox will set sane tty settings on stdin,
989 SYSERROR("Error receiving tty file descriptor from child process.");
1003 if (!conf->tty)
1006 tty_info->pty_info = malloc(sizeof(*tty_info->pty_info) * conf->tty);
1010 for (i = 0; i < conf->tty; i++) {
1015 ERROR("Error receiving tty info from child process.");
1019 tty_info->nbtty = conf->tty;
1254 /* Read tty fds allocated by child. */
1256 ERROR("Failed to receive tty inf
[all...]
H A Dconf.c669 /* proc/tty is used as a temporary placeholder for proc/sys/net which we'll move back in a few steps */
670 { LXC_AUTO_PROC_MASK, LXC_AUTO_PROC_MIXED, "%r/proc/sys/net", "%r/proc/tty", NULL, MS_BIND, NULL },
673 { LXC_AUTO_PROC_MASK, LXC_AUTO_PROC_MIXED, "%r/proc/tty", "%r/proc/sys/net", NULL, MS_MOVE, NULL },
914 ret = snprintf(path, sizeof(path), "/dev/tty%d", i + 1);
920 /* create dev/lxc/tty%d" */
921 ret = snprintf(lxcpath, sizeof(lxcpath), "/dev/%s/tty%d", ttydir, i + 1);
945 ret = snprintf(lxcpath, sizeof(lxcpath), "%s/tty%d", ttydir, i+1);
947 ERROR("tty pathname too long");
952 SYSERROR("failed to create symlink for tty %d", i+1);
977 INFO("%d tty(
[all...]
H A Dconfile.c120 { "lxc.tty", config_tty },
1264 if (lxc_safe_uint(value, &lxc_conf->tty) < 0)
2529 else if (strcmp(key, "lxc.tty") == 0)
2530 return lxc_get_conf_int(c, retv, inlen, c->tty);

Completed in 111 milliseconds