]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - debian/templates/image.prerm.in
rtc: xgene: fix possible race condition
[mirror_ubuntu-bionic-kernel.git] / debian / templates / image.prerm.in
1 #!/bin/sh
2 set -e
3
4 version=@abiname@@localversion@
5 image_path=/boot/@image-stem@-$version
6
7 if [ "$1" != remove ]; then
8 exit 0
9 fi
10
11 linux-check-removal $version
12
13 if [ -d /etc/kernel/prerm.d ]; then
14 DEB_MAINT_PARAMS="$*" run-parts --report --exit-on-error --arg=$version \
15 --arg=$image_path /etc/kernel/prerm.d
16 fi
17
18 exit 0