summaryrefslogtreecommitdiffstats
path: root/src/kernel-install/50-depmod.install (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kernel-install: run depmod only if writeableLudwig Nussel2023-01-051-0/+2
|
* kernel-install: skip 50-depmod if depmod is not availableLuca Boccassi2022-11-071-0/+1
| | | | | | | Images might be built without any kernel module, and without installing depmod as it is not needed. Skip it. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023607
* kernel-install: use set -eZbigniew Jędrzejewski-Szmek2022-07-121-0/+2
| | | | | | This means that we'll fail hard if something goes wrong, e.g. reading of a config file. I think this is appropriate. If errors should be ignored, the caller should do that on their end.
* kernel-install: return 0 for unknown verbs in pluginsZbigniew Jędrzejewski-Szmek2022-07-121-0/+1
| | | | | | | | | | | In practice this makes little difference, because kernel-install will only call the plugins for 'add' or 'remove', and if we were to add a new verb to kernel-install, we'd just change the plugins at the same time. But our plugins serve as documentation for external plugins too, and there it's better to silently ignore unknown verbs so that we can add new verbs in the future. (50-depomod.install was already like that.)
* kernel-install: raise fuss if plugins are called without the expected parametersZbigniew Jędrzejewski-Szmek2022-07-121-2/+2
|
* kernel-install: mark the plugins as executable in gitZbigniew Jędrzejewski-Szmek2022-07-121-0/+0
| | | | | We mark them as executable during installation, but it's also nice to mark them as such in sources, so they can be executed directly.
* Use https for gnu.orgMichael Biebl2022-06-281-1/+1
|
* Merge pull request #21805 from набZbigniew Jędrzejewski-Szmek2022-01-181-11/+15
|\ | | | | | | A trivial merge conflict was fixed manually.
| * kernel-install: 50-depmod: port to /bin/shнаб2022-01-041-13/+15
| |
* | kernel-install: also remove modules.builtin.alias.binYu Watanabe2022-01-171-1/+1
|/ | | | Fixes RHBZ#2016630.
* kernel-install: add boilerplate on installed .install filesZbigniew Jędrzejewski-Szmek2021-01-281-0/+16
| | | | | Those files distribured, so they should have the same header as kernel-install itself. Let's fix indentation while at it.
* treewide: more portable bash shebangsJörg Thalheim2020-03-051-1/+1
| | | | | | | | | | | | | | | | As in 2a5fcfae024ffc370bb780572279f45a1da3f946 and in 3e67e5c9928f8b1e1c5a63def88d53ed1fed12eb using /usr/bin/env allows bash to be looked up in PATH rather than being hard-coded. As with the previous changes the same arguments apply - distributions have scripts to rewrite shebangs on installation and they know what locations to rely on. - For tests/compilation we should rather rely on the user to have setup there PATH correctly. In particular this makes testing from git easier on NixOS where do not provide /bin/bash to improve compose-ability.
* kernel-install: rename $BOOT_DIR[_ABS] to $ENTRY_DIR[_ABS]Zbigniew Jędrzejewski-Szmek2019-03-121-1/+1
| | | | | | | | "BOOT" is misleading, because it sounds like this refers to /boot or $BOOT, when in fact it refers to some subdirectory. Those variable names are purely interal, so we can change them. $BOOT_DIR_ABS was used in NEWS, but it should not be (because it is an internal detail), so the old NEWS entry is reworded to use "entry directory".
* kernel-install: add --verboseZbigniew Jędrzejewski-Szmek2019-03-111-0/+4
| | | | | | This makes it easier to see what is going on. Documentation for --verbose and --help is added to the man page. Our plugins are updated to also log a bit.
* kernel-install/50-depmod: use standard headerZbigniew Jędrzejewski-Szmek2019-03-111-5/+11
|
* kernel-install: don't try to run depmod when kernel doesn't support modulesMarc-Antoine Perennou2018-08-081-0/+1
| | | | Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
* kernel-install: remove unneeded modules.* files created by depmod (#5766)Yu Watanabe2017-04-211-2/+10
| | | Fixes #5765.
* kernel-install: add default install scriptsHarald Hoyer2013-05-061-0/+8
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.