Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
kernel/postinst.d/dracut: Only run if diverted dracut postinst exists
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-klode committed Mar 16, 2018
1 parent 6ec8845 commit ab9c937
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kernel/postinst.d/dracut
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ set -e
sicherboot_kernel_version="$1"

# Run the real dracut first if it exists
if [ -e /etc/kernel/postinst.d/dracut.SecureBoot ]; then
. /etc/kernel/postinst.d/dracut.SecureBoot
fi
[ -e /etc/kernel/postinst.d/dracut.SecureBoot ] || exit 0

. /etc/kernel/postinst.d/dracut.SecureBoot

sicherboot > /dev/null 2>&1 || exit 0

Expand Down

0 comments on commit ab9c937

Please sign in to comment.