summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2005-10-01 02:33:30 +0200
committermaximilian attems <maks@debian.org>2005-10-01 02:33:30 +0200
commita893fa82665ee472079292eb84a125ef81009124 (patch)
tree540886f92c987fa65c7e74a9b4e98459ea554efc /update-initramfs
parent14739b596ae27800ae6ce071745cf2da382d73b4 (diff)
downloadinitramfs-tools-a893fa82665ee472079292eb84a125ef81009124.tar.gz
initramfs-tools-a893fa82665ee472079292eb84a125ef81009124.zip
apply all the 0.30 upstream changes.
Diffstat (limited to 'update-initramfs')
-rw-r--r--update-initramfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-initramfs b/update-initramfs
index f93fc97..bd5a4ab 100644
--- a/update-initramfs
+++ b/update-initramfs
@@ -115,11 +115,11 @@ get_sorted_versions()
set_linked_version()
{
if [ -L /initrd.img ]; then
- linktarget=$(readlink /initrd.img)
+ linktarget=$(basename $(readlink /initrd.img))
fi
if [ -L /boot/initrd.img ]; then
- linktarget=$(readlink /boot/initrd.img)
+ linktarget=$(basename $(readlink /boot/initrd.img))
fi
if [ -z "${linktarget}" ]; then