From e142b08e9f6164871375c011bf5840a14b133d59 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 18 Sep 2016 17:46:04 +0200 Subject: make install -> install ... --- makekernel.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 \ ' -- cgit v1.2.3-70-g09d2