Commit 1da350f1 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

efi: properly create symlink dir

parent 382e7728
......@@ -25,8 +25,9 @@
#include "efivars.h"
#include "path-util.h"
#include "util.h"
#include "mkdir.h"
static const char *arg_dest = NULL;
static const char *arg_dest = "/tmp";
int main(int argc, char *argv[]) {
int r = EXIT_SUCCESS;
......@@ -108,6 +109,8 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
mkdir_parents(name, 0755);
if (symlink("../boot.automount", name) < 0) {
log_error("Failed to create symlink: %m");
return EXIT_FAILURE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment