Lines Matching defs:console
1276 static int setup_dev_console(const char *dest, const char *console) {
1282 assert(console);
1286 r = chmod_and_chown(console, 0600, arg_uid_shift, arg_uid_shift);
1290 /* We need to bind mount the right tty to /dev/console since
1294 to = prefix_roota(dest, "/dev/console");
1297 return log_error_errno(r, "touch() for /dev/console failed: %m");
1299 if (mount(console, to, NULL, MS_BIND, NULL) < 0)
1300 return log_error_errno(errno, "Bind mount for /dev/console failed: %m");
2659 const char *console,
2677 assert(console);
2691 r = open_terminal(console, O_RDWR);
2698 return log_error_errno(r, "Failed to open console: %m");
2703 return log_error_errno(errno, "Failed to duplicate console: %m");
2777 r = setup_dev_console(directory, console);
3082 _cleanup_free_ char *device_path = NULL, *root_device = NULL, *home_device = NULL, *srv_device = NULL, *console = NULL;
3283 r = ptsname_malloc(master, &console);
3391 console,