Debian Codegraph @

kernel/postinst.d/00-legacy-boot

raw symbols SCIP
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 set -eu
4
5 version=$1
6 image=$2
7
8 set -- $DEB_MAINT_PARAMS
9
10 if [ "$1" = configure ]; then
11 image_input=/usr/lib/modules/${version}/vmlinuz
12 if [ -e "$image_input" ]; then
13 cp -l "$image_input" "$image" 2>/dev/null || cp -p "$image_input" "$image"
14 fi
15 fi