[systemd-commits] src/kernel-install
Harald Hoyer
harald at kemper.freedesktop.org
Tue Oct 1 08:42:33 PDT 2013
src/kernel-install/kernel-install | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
New commits:
commit ea52e2aee8dd7b3f51e9a00e76a54ef12dc0e898
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 26 00:38:34 2013 +0200
kernel-install: add compat with 'installkernel'
If 'kernel-install' is called as 'installkernel' it will be compatible with the
syntax used by the kernel's build system.
This means it can be called by doing 'make install' in a kernel build
directory, if the correct symlink has been installed (which we don't do by
default yet).
[Edit harald at redhat.com: removed basename and use shift]
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
index fb2ee57..9d3e75d 100644
--- a/src/kernel-install/kernel-install
+++ b/src/kernel-install/kernel-install
@@ -54,9 +54,15 @@ dropindirs_sort()
export LC_COLLATE=C
-COMMAND="$1"
-KERNEL_VERSION="$2"
-KERNEL_IMAGE="$3"
+if [[ "${0##*/}" == 'installkernel' ]]; then
+ COMMAND='add'
+else
+ COMMAND="$1"
+ shift
+fi
+
+KERNEL_VERSION="$1"
+KERNEL_IMAGE="$2"
if [[ -f /etc/machine-id ]]; then
read MACHINE_ID < /etc/machine-id
More information about the systemd-commits
mailing list