debian-atomic-system-files/apt-ostree-systemd/kernel/install.d/05-aptostree.install
2025-09-01 14:05:34 -07:00

9 lines
370 B
Bash

#!/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