Lines Matching refs:arg_machine
119 static char *arg_machine = NULL;
534 arg_machine = mfree(arg_machine);
541 r = free_and_strdup(&arg_machine, optarg);
915 if (arg_template && !(arg_directory || arg_machine)) {
1363 if (sethostname_idempotent(arg_machine) < 0)
1655 p = strjoina("/run/systemd/nspawn/propagate/", arg_machine);
2280 log_full(arg_quiet ? LOG_DEBUG : LOG_INFO, "Container %s exited successfully.", arg_machine);
2283 log_full(arg_quiet ? LOG_DEBUG : LOG_INFO, "Container %s failed with error code %i.", arg_machine, status.si_status);
2291 log_full(arg_quiet ? LOG_DEBUG : LOG_INFO, "Container %s has been shut down.", arg_machine);
2297 log_full(arg_quiet ? LOG_DEBUG : LOG_INFO, "Container %s is being rebooted.", arg_machine);
2305 log_error("Container %s terminated by signal %s.", arg_machine, signal_to_string(status.si_status));
2309 log_error("Container %s failed due to unknown reason.", arg_machine);
2335 if (arg_template && !arg_directory && arg_machine) {
2341 arg_directory = strjoin("/var/lib/machines/", arg_machine, NULL);
2347 if (arg_machine) {
2350 r = image_find(arg_machine, &i);
2352 return log_error_errno(r, "Failed to find image for machine '%s': %m", arg_machine);
2354 log_error("No image for machine '%s': %m", arg_machine);
2370 if (!arg_directory && !arg_machine) {
2376 if (!arg_machine) {
2378 arg_machine = gethostname_malloc();
2380 arg_machine = strdup(basename(arg_image ?: arg_directory));
2382 if (!arg_machine)
2385 hostname_cleanup(arg_machine);
2386 if (!machine_name_is_valid(arg_machine)) {
2399 if (asprintf(&b, "%s-%016" PRIx64, arg_machine, random_u64()) < 0)
2402 free(arg_machine);
2403 arg_machine = b;
2879 fn = strjoina(arg_machine, ".nspawn");
3296 arg_machine, arg_image ?: arg_directory);
3473 r = setup_veth(arg_machine, pid, veth_name, !!arg_network_bridge);
3488 r = setup_veth_extra(arg_machine, pid, arg_network_veth_extra);
3492 r = setup_macvlan(arg_machine, pid, arg_network_macvlan);
3496 r = setup_ipvlan(arg_machine, pid, arg_network_ipvlan);
3503 arg_machine,
3674 if (arg_machine) {
3677 p = strjoina("/run/systemd/nspawn/propagate/", arg_machine);
3686 free(arg_machine);