summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-09-18 17:46:04 +0200
committerErich Eckner <git@eckner.net>2016-09-18 18:43:04 +0200
commite142b08e9f6164871375c011bf5840a14b133d59 (patch)
tree5747728c511bb84929fe1effd3425e96b34bb9ef
parentbe654c51ee312c9f7cb5009e4899e8776a4e2e39 (diff)
downloadmakekernel-e142b08e9f6164871375c011bf5840a14b133d59.tar.xz
make install -> install ...
-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 \
'