diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-01-21 01:12:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-01-21 01:12:51 +0100 |
commit | 1da350f18e871566eeab16585e5c18c6e440e30e (patch) | |
tree | 42e9c8cdf4d0056d788638b851cbf280f956789e /src | |
parent | 382e77287c6f4d122395e8685274d2ee85aec3eb (diff) |
efi: properly create symlink dir
Diffstat (limited to 'src')
-rw-r--r-- | src/efi-boot-generator/efi-boot-generator.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/efi-boot-generator/efi-boot-generator.c b/src/efi-boot-generator/efi-boot-generator.c index ee6ec31c0e..c7bf34a532 100644 --- a/src/efi-boot-generator/efi-boot-generator.c +++ b/src/efi-boot-generator/efi-boot-generator.c @@ -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; |