summaryrefslogtreecommitdiff
path: root/src/kernel-install/kernel-install
Commit message (Collapse)AuthorAgeFilesLines
* kernel-install: support the case /etc/machine-id is missing or empty (#5975)Yu Watanabe2017-05-301-9/+18
| | | | | | | | | | | | Some .install plugins does not require that machine ID is set such as 20-grubby.install for Fedora and 50-depmod.install. To support such plugins to run without valid machine-id, this commit makes the following change: * if /etc/machine-id is missing or empty, create temporary directory and set its path to BOOT_DIR_ABS, * run the .install helpers with KERNEL_INSTALL_MACHINE_ID environment variable that'd be empty if /etc/machine-id is missing or empty. This may be useful for installing kernel for e.g. stateless systems which initialize machine-id while booting the systems.
* kernel-install: avoid process substitutionMichal Schmidt2017-01-111-4/+4
| | | | | | | | | bash implements process substitution using /dev/fd/N (this is documented in man bash). We'd like kernel-install to work in chrooted RPM scriptlets without /dev. We can use here-strings instead. bash uses temporary files to implement those.
* kernel-install: use exit instead of return (#4565)Yu Watanabe2016-11-041-2/+2
| | | | | /bin/kernel-install: line 143: return: can only `return' from a function or sourced script https://bugzilla.redhat.com/show_bug.cgi?id=1391829
* kernel-install: allow plugins to terminate the procedure (#4174)Zbigniew Jędrzejewski-Szmek2016-09-241-2/+12
| | | Replaces #4103.
* Revert "kernel-install: Add KERNEL_INSTALL_NOOP (#4103)"Martin Pitt2016-09-171-7/+0
| | | | | | | Further discussion showed that this better gets addressed at the packaging level. This reverts commit 34210af7c63640fca1fd4a09fc23b01a8cd70bf3.
* kernel-install: Add KERNEL_INSTALL_NOOP (#4103)Colin Walters2016-09-141-0/+7
| | | | | | | Will be used by rpm-ostree (and likely lorax) to suppress RPM->kernel->%posttrans->dracut runs, and basically everything else this script is doing. I'll also likely change the `kernel.spec` to respect this as well.
* kernel-install: when searching for location to place kernel consider /efiLennart Poettering2016-07-211-3/+8
| | | | | | | | | | With this change kernel-install will now first look for an existing kernel installation in /efi, /boot and /boot/efi. If none is found, /efi is used if it is a mount point, otherwise /boot/efi if it is one. If nothing of that worked /boot is used without further checking. This means /boot should be the default unless something was installed before or something else was explicitly mounted.
* kernel-install: recognize /boot/efi mountpoint (#3751)Harald Hoyer2016-07-191-1/+9
| | | install everything in /boot/efi, if this is a mountpoint
* kernel-install: fix help outputSébastien Luttringer2013-12-091-1/+1
| | | | | | Kernel install doesn't need the second argument on his command line when removing. This is correctly documented in the man page.
* kernel-install: add -h/--helpZbigniew Jędrzejewski-Szmek2013-12-081-7/+14
|
* kernel-install: add compat with 'installkernel'Tom Gundersen2013-10-011-3/+9
| | | | | | | | | | | 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@redhat.com: removed basename and use shift]
* kernel-install: add default install scriptsHarald Hoyer2013-05-061-57/+11
| | | | | | | | | | | | | 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.
* kernel-install: Clean upMantas Mikulėnas2013-04-301-62/+75
| | | | | | | | | - Consistent use of $VAR vs ${VAR} - Consistent use of && vs 'if' - Add error checking to some places - Consistent error messages ("Can't" vs "Cannot", etc.) - Function declarations at the top - Miscellaneous adjustments
* kernel-install: don't make unused parameter mandatoryMarc-Antoine Perennou2013-04-081-1/+5
| | | | | | We only use the image name in the case we're adding a kernel Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
* kernel-install: rename the loader entry filenameHarald Hoyer2013-02-261-1/+1
| | | | | | | | The wildcard matching the default loader entry should always be able to point to the same machine. So instead of sorting by <distribution>-<kernel-version>-<machine-id> we better sort by <machine-id>-<kernel-version>.
* kernel-install: create the loader entries with absolute paths relative to /bootHarald Hoyer2013-02-261-2/+2
|
* kernel-install: replace URLs with man pages in the error messagesHarald Hoyer2013-02-261-2/+2
|
* kernel-install: fixed paths in boot loader entryHarald Hoyer2013-02-261-13/+15
| | | | For the loader entry a relative path has to be used.
* kernel-install: remove LANG=Kay Sievers2013-02-251-2/+0
|
* kernel-install: add kernel-install toolHarald Hoyer2013-02-251-0/+152