[kernel] r6946 - in dists/trunk/utils/mkvmlinuz/mkvmlinuz: debian
Sven Luther
luther at costa.debian.org
Tue Jul 4 23:02:01 UTC 2006
Author: luther
Date: Tue Jul 4 23:02:01 2006
New Revision: 6946
Modified:
dists/trunk/utils/mkvmlinuz/mkvmlinuz/debian/changelog
dists/trunk/utils/mkvmlinuz/mkvmlinuz/mkvmlinuz
dists/trunk/utils/mkvmlinuz/mkvmlinuz/output
Log:
Added support for mkvmlinuz /boot/vmlinuz symlink to the latest installed kernel.
Modified: dists/trunk/utils/mkvmlinuz/mkvmlinuz/debian/changelog
==============================================================================
--- dists/trunk/utils/mkvmlinuz/mkvmlinuz/debian/changelog (original)
+++ dists/trunk/utils/mkvmlinuz/mkvmlinuz/debian/changelog Tue Jul 4 23:02:01 2006
@@ -1,9 +1,11 @@
-mkvmlinuz (23) UNRELEASED; urgency=low
+mkvmlinuz (23) unstable; urgency=low
* Fallback arch/powerpc/boot object files for chrp kernels without mkvmlinuz
support. This uses the 2.6.16+ code, but should work with any 2.6 kernel.
+ * Now supports the creation of a /boot/vmlinuz symlink to the last created
+ vmlinuz kernel.
- -- Sven Luther <luther at debian.org> Thu, 29 Jun 2006 23:38:07 +0200
+ -- Sven Luther <luther at debian.org> Tue, 4 Jul 2006 22:04:50 +0200
mkvmlinuz (22) unstable; urgency=high
Modified: dists/trunk/utils/mkvmlinuz/mkvmlinuz/mkvmlinuz
==============================================================================
--- dists/trunk/utils/mkvmlinuz/mkvmlinuz/mkvmlinuz (original)
+++ dists/trunk/utils/mkvmlinuz/mkvmlinuz/mkvmlinuz Tue Jul 4 23:02:01 2006
@@ -384,14 +384,34 @@
echo Sorry, I do not know how to handle PowerPC sub-architecture $arch in version $release.
esac
-# move bootable kernel image to its final location
+# move bootable kernel image to its final location and creating symlinks.
if test -e $vmlinuz; then
+ if test -n "$linkname"; then
+ oldlink="`readlink $linkname`"
+ fi
test -z "$verbose" || echo === Moving bootable kernel image file to $output...
if test -e $output; then
echo Output file $output exists, attempting to back it up...
mv $output $output.old 2> /dev/null
+ if test -n "$linkname" && test "$oldlink" = "`basename $output`"; then
+ oldlink=$output.old
+ fi
fi
cat $vmlinuz > $output
+ if test -n "$linkname"; then
+ test -z "$verbose" || echo Creating symlink : $linkname -\> $output
+ if test -L "$linkname"; then
+ unlink $linkname
+ fi
+ ln -sf "`basename $output`" $linkname
+ if test -n "$oldlink"; then
+ test -z "$verbose" || echo Creating backup symlink : $linkname.old -\> $oldlink
+ if test -L "$linkname.old"; then
+ unlink $linkname.old
+ fi
+ ln -sf $oldlink $linkname.old
+ fi
+ fi
fi
# clean up
Modified: dists/trunk/utils/mkvmlinuz/mkvmlinuz/output
==============================================================================
--- dists/trunk/utils/mkvmlinuz/mkvmlinuz/output (original)
+++ dists/trunk/utils/mkvmlinuz/mkvmlinuz/output Tue Jul 4 23:02:01 2006
@@ -25,3 +25,7 @@
#else
#output=/boot/vmlinuz-initrd-$release.$arch
#fi
+
+# Let's define also the name of the symlink here.
+# An empty $linkname means no symlink created.
+linkname=/boot/vmlinuz
More information about the Kernel-svn-changes
mailing list