LINUX-UPDATE-SYMLINKS(1) | General Commands Manual | LINUX-UPDATE-SYMLINKS(1) |
linux-update-symlinks - maintain symlinks to default kernel and initramfs
linux-update-symlinks {install|upgrade|remove} VERSION IMAGE-PATH
linux-update-symlinks is intended to be called from the postinst and postrm maintainer scripts of Linux kernel packages. The postinst script must pass the first argument install or upgrade depending on whether a fresh installation or an upgrade has taken place.
The VERSION argument must be the kernel version string as shown by uname -r and used in filenames.
The IMAGE-PATH argument must be the absolute filename of the kernel image.
By default, this command maintains symlinks in the root directory. This behaviour can be modified by settings in /etc/kernel-img.conf:
The symlinks for the primary default kernel version are named vmlinuz or vmlinux (depending on whether the architecture normally uses compressed kernel images) and initrd.img (if it uses an initramfs). The symlinks for the secondary default have the same names with the suffix .old.
If symlink maintenance is disabled, linux-update-symlinks does nothing, successfully. Otherwise it makes a list of kernel versions in decreasing order of priority:
The top two entries on the list are the new primary and secondary default versions, and it updates the symlinks accordingly. In case there is only one entry, this is both the primary and secondary default version. If there are no entries, there are no default versions and it removes the default symlinks.
linux-update-symlinks and this manual page were written by Ben Hutchings as part of the Debian linux-base package.
5 June 2016 |