summaryrefslogtreecommitdiff
path: root/kernel/postrm.d/initramfs-tools
blob: 278a6fcacb297388cafcb099088a6552e64b1278 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# passing the kernel version is required
[ -z "$1" ] && exit 0

# kernel-package passes an extra arg; hack to not run under kernel-package
[ -z "$2" ] || exit 0

# delete initramfs
update-initramfs -d -k "$1"