Bug 441908

Summary: syntax error in /etc/rc.d/init.d/firstboot
Product: [Fedora] Fedora Reporter: archimerged Ark submedes <archimerged>
Component: firstbootAssignee: Chris Lumens <clumens>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: archimerged, dwalsh, ovasik, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-11 05:53:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description archimerged Ark submedes 2008-04-10 18:06:28 UTC
+++ This bug was initially created as a clone of Bug #441511 +++

Splitting out the minor problem so it can be marked closed.

Description of problem:
Syntax error in /etc/rc.d/init.d/firstboot

Version-Release number of selected component (if applicable):
rawhide 20080409
firstboot-1.95-3.fc9.i386


How reproducible:
100%

-- Additional comment from archimerged on 2008-04-09 19:25 EST --
Created an attachment (id=301907)
Patch /etc/rc.d/init.d/firstboot

Fix syntax error and update comments in /etc/rc.d/init.d/firstboot.  Correct
the description in both chkconfig and INIT INFO sections.

grep -qs returns 0 (true) if the file exists and the string is present.
It returns 1 (false) if the string is absent.
It returns 2 (false) if the file is absent.

[beta@beta firstboot]$ cat /etc/sysconfig/firstboot 
RUN_FIRSTBOOT=NO
[beta@beta firstboot]$ if grep -qs 'RUN_FIRSTBOOT=NO'
/etc/sysconfig/nonexistant-file; then echo true; else echo false; fi
false
[beta@beta firstboot]$ if grep -qs 'RUN_FIRSTBOOT=NO' /etc/sysconfig/firstboot;
then echo true; else echo false; fi
true
[beta@beta firstboot]$ if grep -qs 'string not present'
/etc/sysconfig/firstboot; then echo true; else echo false; fi
false

Comment 1 Chris Lumens 2008-04-11 05:53:33 UTC

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