[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#320422: linux-image-2.6.12-1: error in postinst that creates dangling symlinks



Package: linux-image-2.6.12-1
Version: 2.6.12-1-k7
Severity: important

Hi,

the postinst for linux-image-2.6.12 contains an error that creates
symlinks /boot/vmlinuz* and /boot/initrd.img* that point into the void.

$ ll /boot/vmlinuz{,.old} /boot/initrd.img{,.old}
lrwxrwxrwx  1 root root 4 2005-07-26 08:21 /boot/initrd.img -> -2.6
lrwxrwxrwx  1 root root 4 2005-07-22 18:49 /boot/initrd.img.old -> -2.6
lrwxrwxrwx  1 root root 4 2005-07-26 08:21 /boot/vmlinuz -> -2.6
lrwxrwxrwx  1 root root 4 2005-07-22 18:49 /boot/vmlinuz.old -> -2.6

I guess the couse of these dangling symlinks is the line
	my $image_name = $kimage-$version;
in the postinst's image_magic function.

This line would be correct in a shell script, but since this is Perl
this line must read:
	my $image_name = "$kimage-$version";
to be correct.	

Hope this helps
Peter	

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)



Reply to: