#!/usr/bin/bash # Check if install.conf is missing or does not include layout=ostree if [ ! -f /usr/lib/kernel/install.conf ] || ! grep -q layout=ostree /usr/lib/kernel/install.conf; then exit 0 fi # This is the hook that has kernel-install call into apt-ostree kernel-install if test -x /usr/bin/apt-ostree; then exec /usr/bin/apt-ostree kernel-install "$@" fi