Skip to content
Snippets Groups Projects
Commit f39625af authored by Ben Hutchings's avatar Ben Hutchings
Browse files

update-initramfs: Make "-k all" take over other initramfs images


Now that we assume ownership of /boot/initrd.img-<version> for all
installed kernel versions, an update or deletion command with "-k all"
should be applied to all such files, even if we didn't create them.

Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent c0ae42ba
No related branches found
No related tags found
1 merge request!1Update and sync version to current version 0.140 in Debian stable
......@@ -202,8 +202,13 @@ ro_boot_check()
get_sorted_versions()
{
version_list="$(ls -1 "${STATEDIR}" | linux-version sort --reverse)"
version_list="$(
linux-version list |
while read version; do
test -e "${BOOTDIR}/initrd.img-$version" && echo "$version"
done |
linux-version sort --reverse
)"
verbose "Available versions: ${version_list}"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment