1 |
commit: fe729696c3814267d039d2aad23888acf80b9ede |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 28 21:38:28 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 28 21:38:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=fe729696 |
7 |
|
8 |
compile_gen_init_cpio(): use 'mkdir -p' when creating $KERNEL_OUTPUTDIR/usr |
9 |
|
10 |
This is usually only required for users using genkernel to create initramfs without |
11 |
building kernel but it doesn't hurt. |
12 |
|
13 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
14 |
|
15 |
gen_compile.sh | 2 +- |
16 |
1 file changed, 1 insertion(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/gen_compile.sh b/gen_compile.sh |
19 |
index 1c29360..93c2af4 100755 |
20 |
--- a/gen_compile.sh |
21 |
+++ b/gen_compile.sh |
22 |
@@ -251,7 +251,7 @@ compile_gen_init_cpio() { |
23 |
print_info 1 "$(getIndent 2)>> Compiling gen_init_cpio..." |
24 |
|
25 |
[ ! -e "${gen_init_cpio_SRC}" ] && gen_die "'${gen_init_cpio_SRC}' is missing. Cannot compile gen_init_cpio!" |
26 |
- [ ! -d "${gen_init_cpio_DIR}" ] && mkdir "${gen_init_cpio_DIR}" |
27 |
+ [ ! -d "${gen_init_cpio_DIR}" ] && mkdir -p "${gen_init_cpio_DIR}" || gen_die "failed to create '${gen_init_cpio_DIR}'!" |
28 |
|
29 |
export_utils_args |