]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - debian/templates/image.preinst.in
UBUNTU: [Packaging] buildinfo -- add buildinfo support to getabis
[mirror_ubuntu-bionic-kernel.git] / debian / templates / image.preinst.in
1 #!/bin/sh
2 set -e
3
4 version=@abiname@@localversion@
5 image_path=/boot/@image-stem@-$version
6
7 if [ "$1" = abort-upgrade ]; then
8 exit 0
9 fi
10
11 if [ "$1" = install ]; then
12 # Create a flag file for postinst
13 mkdir -p /lib/modules/$version
14 touch /lib/modules/$version/.fresh-install
15 fi
16
17 if [ -d /etc/kernel/preinst.d ]; then
18 DEB_MAINT_PARAMS="$*" run-parts --report --exit-on-error --arg=$version \
19 --arg=$image_path /etc/kernel/preinst.d
20 fi
21
22 exit 0