Commit Graph

7 Commits

Author SHA1 Message Date
наб
95a520751e
debian/extra/kernel-install.d/85-initrd.install: explicitly ignore unknown verbs
Upstream reasoning applies:
  852f98d6aa
2022-09-22 13:33:44 +02:00
наб
f1c9fdd98a
debian/extra/kernel-install.d/85-initrd.install: install default initrd with versioned basename
This fixes #1020396 in a superior way by using
$KERNEL_INSTALL_STAGING_AREA, available since systemd v251:
  367165a406

By just copying the file we both simplify our code,
but defer to 90-loaderentry to correctly permission it,
and simply never generate an unversioned initrd in the first place!
2022-09-22 10:44:01 +02:00
наб
006bcd63f1
debian/extra/kernel-install.d/85-initrd.install: match initrd installation messages and uninstallation to 90-loaderentry.install 2020-12-09 18:53:57 +01:00
наб
409d924563
debian/extra/kernel-install.d/85-initrd.install: Don't install initrd when an explicit path was passed 2020-12-09 18:53:55 +01:00
Alexander Kurtz
6ed4ea7aea debian/extra/kernel-install.d/85-initrd.install: Remove an unnecessary variable.
When removing, kernel-install calls its plugins with only three arguments [0]
(in contrast to adding where it's four arguments). Since we are running with
"set -u", trying to expand the fourth argument causes the script to fail.
However, as the $KERNEL_IMAGE variable is never used, we can simply remove it.

[0] https://github.com/systemd/systemd/blob/v232/src/kernel-install/kernel-install#L140

Closes: #845977
2016-11-27 19:54:54 +01:00
Martin Pitt
8f085a40dc Move kernel-install initrd script to a later prefix
60- does not leave much room for scripts that want to run before initrd
building (which is usually one of the latest things to do), so bump to 85.
Thanks to Sjoerd Simons for the suggestion.
2016-11-14 09:23:44 +01:00
Martin Pitt
c41ccefca5 Add debian/extra/kernel-install.d/60-initrd.install
This kernel-install drop-in copies the initrd of the selected kernel to the
EFI partition.
2016-08-24 06:54:17 +02:00