summaryrefslogtreecommitdiff
path: root/sys-kernel/genkernel-next/missing-no-install-cd.patch
blob: 96b2e04553b1c3404b1f6bb048a9302706edccdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/gen_compile.sh b/gen_compile.sh
index 69eb414..60ed2a7 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -334,6 +334,8 @@ compile_kernel() {
                 "kernelz-${KV}"
         fi
     else
+        local curdir=$(pwd)
+        cd ${KERNEL_OUTPUTDIR}
         cp "${tmp_kernel_binary}" "${TMPDIR}/kernel-${KNAME}-${ARCH}-${KV}${KAPPENDNAME}" ||
             gen_die "Could not copy the kernel binary to ${TMPDIR}!"
         cp "System.map" "${TMPDIR}/System.map-${KNAME}-${ARCH}-${KV}${KAPPENDNAME}" ||
@@ -343,6 +345,7 @@ compile_kernel() {
             cp "${tmp_kernel_binary2}" "${TMPDIR}/kernelz-${KV}" ||
                 gen_die "Could not copy the kernelz binary to ${TMPDIR}!"
         fi
+        cd "${curdir}"
     fi
 }