Commit 7cd0f44d authored by Guido Gunther's avatar Guido Gunther

Update zImage symlink when installing new kernels

parent 07d1ef4c
#!/bin/sh
# see Chapter 8 of Debian Linux Kernel Handbook
set -e
abi="$1"
# ignored
_vmlinuz="${2:-/boot/vmlinuz-$abi}"
ln -sf $(basename "${_vmlinuz}") /boot/zImage
......@@ -59,6 +59,7 @@ function setup_kernel()
local link="$(basename $basedir/boot/vmlinuz-*)"
rm -f "${basedir}/boot/zImage"
ln -s "${link}" "${basedir}/boot/zImage"
cp data/update-zImage-link "${basedir}/etc/kernel/postinst.d/"
mkdir -p "${basedir}/boot/dtbs"
cp "${basedir}"/usr/lib/linux-image-*/${fdt_file} "${basedir}/boot/dtbs/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment