Bug 1628663

Summary: 01_fallback_counting does not do anything useful
Product: [Fedora] Fedora Reporter: Villy Kruse <ppywlkiqletw>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: lkundrak, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-08 05:28:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Villy Kruse 2018-09-13 16:48:28 UTC
Description of problem:

01_fallback_counting is run as a shell script and does not install any snippet into grub.cfg.

I suppose the file should be looking like this, that is "cat << EOF" added.

============================================
#! /bin/sh -e

# Boot Counting
cat << EOF
if [ "\${boot_counter}" -a "\${boot_success}" = "0" ]; then
  if  [ "\${boot_counter}" = "0" -o "\${boot_counter}" = "-1" ]; then
    set default=1
    set boot_counter=-1
  else
    set boot_counter=$((\${boot_counter}-1))
  fi
  save_env boot_counter
fi
EOF
=============================================

Comment 1 Villy Kruse 2018-10-08 05:28:19 UTC

*** This bug has been marked as a duplicate of bug 1614637 ***