From 8f51399e75e5d0d0741ecb18c549a57840bd1cc3 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 30 Apr 2013 18:01:47 +0200 Subject: kernel-install: add default install scripts Do the depmod in the kernel-install hooks, so hooks can produce/install kernel modules and be part of the depmod. Also move the basic boot loader entry creation and removal to a plugin script. If PRETTY_NAME is not defined in /etc/os-release, fallback to PRETTY_NAME="Linux $KERNEL_VERSION". Add documentation for everything in the man page. --- man/kernel-install.xml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'man/kernel-install.xml') diff --git a/man/kernel-install.xml b/man/kernel-install.xml index 9c2ecc48b2..8c2abc747c 100644 --- a/man/kernel-install.xml +++ b/man/kernel-install.xml @@ -84,7 +84,9 @@ along with systemd; If not, see . add KERNEL-VERSION KERNEL-IMAGE - calls every executable + kernel-install creates the directory + /boot/MACHINE-ID/KERNEL-VERSION/ + and calls every executable /usr/lib/kernel/install.d/*.install and /etc/kernel/install.d/*.install with the arguments @@ -93,21 +95,22 @@ add KERNEL-VERSION /boot/MACHI - kernel-install copies + The kernel-install plugin 50-depmod.install runs depmod for the KERNEL-VERSION. + + The kernel-install plugin 90-loaderentry.install copies KERNEL-IMAGE to /boot/MACHINE-ID/KERNEL-VERSION/linux. - - - kernel-install also creates a boot - loader entry according to the boot loader specification in + It also creates a boot loader entry according to the boot loader specification in /boot/loader/entries/MACHINE-ID-KERNEL-VERSION.conf. + The title of the entry is the PRETTY_NAME parameter specified in /etc/os-release, + or "Linux KERNEL-VERSION", if unset. If the file initrd is found next to the linux file, the initrd will be added to the configuration. - remove KERNEL-VERSION KERNEL-IMAGE + remove KERNEL-VERSION calls every executable /usr/lib/kernel/install.d/*.install and /etc/kernel/install.d/*.install with the arguments @@ -117,9 +120,10 @@ remove KERNEL-VERSION /boot/MA kernel-install removes the entire directory - /boot/MACHINE-ID/KERNEL-VERSION/ - and the file - /boot/loader/entries/MACHINE-ID-KERNEL-VERSION.conf + /boot/MACHINE-ID/KERNEL-VERSION/ afterwards. + + The kernel-install plugin 90-loaderentry.install removes the file + /boot/loader/entries/MACHINE-ID-KERNEL-VERSION.conf. @@ -167,7 +171,7 @@ remove KERNEL-VERSION /boot/MA /etc/os-release - The content of the file specifies the operating system id OS-ID. + The content of the file specifies the operating system title PRETTY_NAME. -- cgit v1.2.3-54-g00ecf