Skip to content

Commit d4cf69b

Browse files
authored
Merge pull request #5259 from jmarrero/layout-check-script
2 parents f87ee96 + 3e29b1a commit d4cf69b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libpriv/05-rpmostree.install

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/bash
2+
# Check if install.conf is missing or does not include layout=ostree
3+
if [ ! -f /usr/lib/kernel/install.conf ] || ! grep -q layout=ostree /usr/lib/kernel/install.conf; then
4+
exit 0
5+
fi
26
# This is the hook that has kernel-install call into rpm-ostree kernel-install
37
if test -x /usr/bin/rpm-ostree; then
48
exec /usr/bin/rpm-ostree kernel-install "$@"

0 commit comments

Comments
 (0)