#include "mkdir.h"
#include "unit-name.h"
#include "virt.h"
+#include "fileio.h"
static const char *arg_dest = "/tmp";
/* In case console=hvc0 is passed this will very likely result in EEXIST */
r = 0;
else {
- log_error("Failed to create symlink from %s to %s: %m", from, to);
+ log_error("Failed to create symlink %s: %m", to);
r = -errno;
}
}
/* Automatically add in a serial getty on the kernel
* console */
- if (tty_is_vc(tty))
+ if (isempty(tty) || tty_is_vc(tty))
free(active);
else {
int k;