Bug 1628663 - 01_fallback_counting does not do anything useful
Summary: 01_fallback_counting does not do anything useful
Keywords:
Status: CLOSED DUPLICATE of bug 1614637
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-13 16:48 UTC by Villy Kruse
Modified: 2018-10-08 05:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-08 05:28:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.