[systemd-devel] kernel-install questions

Tom Gundersen teg at jklm.no
Wed Sep 25 06:35:43 PDT 2013


Hi Harald,

I have been looking at integrating kernel-install with Arch and I ran
across a few questions:

*) With /boot on fat, 'add' fails for me due to not being able to use
"cp --preserve". How is this meant to work (or was it just not tested
on fat)? Dropping "--preserve" makes it work for me.

*) How come the interface of kernel-install is not the same as what is
used by "make install" in the kernel? With the below kernel patch make
install "just works". Was there a reason for the different interface,
or would you be open to adding compatibility with the kernel script?
(I could of course just ship a shim script, but I'd rather not).

 [1mdiff --git a/Makefile b/Makefile [m
 [1mindex 8d0668f..248d59c 100644 [m
 [1m--- a/Makefile [m
 [1m+++ b/Makefile [m
 [36m@@ -335,7 +335,7 @@ [m  [mOBJCOPY = $(CROSS_COMPILE)objcopy [m
 OBJDUMP = $(CROSS_COMPILE)objdump [m
 AWK = awk [m
 GENKSYMS = scripts/genksyms/genksyms [m
 [31m-INSTALLKERNEL  := installkernel [m
 [32m+ [m [32mINSTALLKERNEL  := kernel-install [m
 DEPMOD = /sbin/depmod [m
 PERL = perl [m
 CHECK = sparse [m
 [1mdiff --git a/arch/x86/boot/install.sh b/arch/x86/boot/install.sh [m
 [1mindex d13ec1c..4ce2240 100644 [m
 [1m--- a/arch/x86/boot/install.sh [m
 [1m+++ b/arch/x86/boot/install.sh [m
 [36m@@ -34,7 +34,7 @@ [m  [mverify "$3" [m
 # User may have a custom install script [m
  [m
 if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi [m
 [31m-if [ -x /sbin/${INSTALLKERNEL} ]; then exec
/sbin/${INSTALLKERNEL} "$@"; fi [m
 [32m+ [m [32mif [ -x /sbin/${INSTALLKERNEL} ]; then exec
/sbin/${INSTALLKERNEL} add "$@"; fi [m
  [m
 # Default install - same as make zlilo [m
  [m

Cheers,

Tom


More information about the systemd-devel mailing list