summaryrefslogtreecommitdiff
path: root/makekernel.in
diff options
context:
space:
mode:
Diffstat (limited to 'makekernel.in')
-rw-r--r--makekernel.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/makekernel.in b/makekernel.in
index 3195b79..b0a7dfa 100644
--- a/makekernel.in
+++ b/makekernel.in
@@ -184,12 +184,21 @@ make oldconfig
make
grep -q '^# CONFIG_MODULES is not set$' .config || make modules_install
+kernelImg="$(find ${kernelDir}/linux-${curVer}/arch/ -type f -iname '*image')"
+if [ $(echo "${kernelImg}" | wc -l) -ne 1 ]
+then
+ >&2 echo 'ERROR: Did not find exactly one compiled kernel image:'
+ >&2 echo "${kernelImg}"
+ >&2 echo 'Closing.'
+ exit 1
+fi
+
echo 'becoming root ...'
su -c ' \
. #ETCDIR#/makekernel.conf && \
before_install_hook && \
- make install && \
+ install -m644 --owner=root "'"${kernelImg}"'" "/boot/vmlinuz-'"${curVer}"'" && \
grub-mkconfig -o /boot/grub/grub.cfg && \
after_install_hook \
'