## Problem description
Executing the `/etc/kernel/postinst.d/xx-update-initrd-links` script incorrectly detects symbolic links targets and then creates malformed (hence broken) ones instead:
/initrd.img -> initrd.imgboot/vmlinuz-5.3.0-53-generic /initrd.img.old -> initrd.imgboot/vmlinuz-5.3.0-53-generic
while it should actually be:
/initrd.img -> boot/initrd.img-5.3.0-53-generic /initrd.img.old -> boot/initrd.img-5.3.0-53-generic
The problem appeared with the release of the version 4.5ubuntu1.5 of the linux-base package, which made this script executable.
## Solution
A solution is proposed through the attached patch file.
## System information
Description: Ubuntu 18.04.5 LTS Release: 18.04 Uname: Linux 5.3.0-53-generic x86_64
## Package information
Package: linux-base 4.5ubuntu1.5 PackageArchitecture: all SourcePackage: linux-base Tags: bionic package-from-proposed
## Problem description
Executing the `/etc/kernel/ postinst. d/xx-update- initrd- links` script incorrectly detects symbolic links targets and then creates malformed (hence broken) ones instead:
/initrd.img -> initrd. imgboot/ vmlinuz- 5.3.0-53- generic imgboot/ vmlinuz- 5.3.0-53- generic
/initrd.img.old -> initrd.
while it should actually be:
/initrd.img -> boot/initrd. img-5.3. 0-53-generic img-5.3. 0-53-generic
/initrd.img.old -> boot/initrd.
The problem appeared with the release of the version 4.5ubuntu1.5 of the linux-base package, which made this script executable.
## Solution
A solution is proposed through the attached patch file.
## System information
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Uname: Linux 5.3.0-53-generic x86_64
## Package information
Package: linux-base 4.5ubuntu1.5 ture: all from-proposed
PackageArchitec
SourcePackage: linux-base
Tags: bionic package-