Skip to content

Commit

Permalink
Merge pull request #3150 from travier/grub2-15_ostree-atomic-desktops
Browse files Browse the repository at this point in the history
grub2-15_ostree: Graceful exit if /etc/default/grub doesn't exist
  • Loading branch information
cgwalters committed Feb 1, 2024
2 parents a4c5ab1 + 5203d6d commit 7404131
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/boot/grub2/grub2-15_ostree
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
#
#
# Copyright (C) 2014 Colin Walters <walters@verbum.org>
#
# This program is free software: you can redistribute it and/or modify
Expand All @@ -24,6 +24,12 @@ if ! test -d /ostree/repo; then
exit 0
fi

# Gracefully exit if we can not find the grub2 'default' configuration as it is
# the case on new installations with bootupd where it is not needed.
if ! test -f /etc/default/grub; then
exit 0
fi

# Gracefully exit if the grub2 configuration has BLS enabled,
# and the installed version has support for the blscfg module.
# Since there is no need to create menu entries for that case.
Expand Down

0 comments on commit 7404131

Please sign in to comment.