From 897ab776458b85784a8c4ec366465c98d153d498 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sat, 18 Jan 2020 16:13:11 +0000 Subject: update-initramfs: Make "-c -k all" options useful again "update-initramfs -c -k all" used to re-create initramfs images if they had been deleted without using "update-initramfs -d", as it used the state directory to determine which kernel versions should have them. Since commit f39625a "update-initramfs: Make "-k all" take over other initramfs images", it ignores the state directory and is almost equivalent to "update-initramfs -u -k all". Change it to operate on all installed kernel versions. This will ignore which kernel versions suppressed initramfs generation, but I think it's reasonable to assume users won't use these options if they have installed such kernels. Closes: #926401 Signed-off-by: Ben Hutchings --- update-initramfs.8 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'update-initramfs.8') diff --git a/update-initramfs.8 b/update-initramfs.8 index 1047965..b36fc57 100644 --- a/update-initramfs.8 +++ b/update-initramfs.8 @@ -35,10 +35,11 @@ This argument is optional for update. The default is the latest kernel version. The use of "all" for the .I version -string specifies +string specifies that .B update\-initramfs -to execute the chosen action for all installed kernel versions that already -have an initramfs. +should operate on all installed kernel versions (with \fB\-c\fR), or +on all installed kernel versions that already have an initramfs +(with \fB\-d\fR or \fB\-u\fR). .TP \fB\-c -- cgit v1.2.3