Skip to content

Commit

Permalink
Merge pull request #1301 from jkonecny12/fix-rpm-ostree-container-uef…
Browse files Browse the repository at this point in the history
…i-validation

Fix validation issue in rpm-ostree-container-uefi
  • Loading branch information
rvykydal authored Sep 4, 2024
2 parents 73b61ed + 5a1bb6f commit b75de4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpm-ostree-container-uefi.ks.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ reboot
%ksappend validation/success_on_first_boot.ks

%post
efibootmgr | grep "Boot0001" | grep "HD(1"
# We need to use tr because sometimes there is newline inside of the efibootmgr entry line :(
efibootmgr | tr -s '\n' ' ' | grep -E 'Boot0001\* Fedora\s+HD\(1'
if [ $? -ne 0 ]; then
echo -e "EFI boot entry wasn't created properly:\n$(efibootmgr)" >> /root/RESULT
fi
Expand Down

0 comments on commit b75de4b

Please sign in to comment.