summaryrefslogtreecommitdiff
path: root/kernel/postinst.d/initramfs-tools
blob: 1cb72a88ffe3c747acc57bd15e7c89037331ef2a (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

# we're good - create initramfs.  update runs do_bootloader
update-initramfs -c -t -k "$1"