Bug 754360

Summary: Firstboot cannot run in CLI
Product: Red Hat Enterprise Linux 5 Reporter: yu zheng <yuzheng>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED NOTABUG QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 5.8CC: alikins, khong, mkhusid
Target Milestone: betaKeywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-16 15:23:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 715031    

Description yu zheng 2011-11-16 09:29:06 UTC
Description of problem:
Firstboot can't be started.

Version-Release number of selected component (if applicable):
subscription-manager-gnome-0.98.2-1.el5
subscription-manager-0.98.2-1.el5
subscription-manager-firstboot-0.98.2-1.el5
python-rhsm-0.98.2-1.el5

How reproducible:
always

Steps to Reproduce:
1.Start firstboot
# firstboot
  
Actual results:
An error msg "firstboot cannot run, exiting" displays.

Expected results:
Firstboot UI should dispaly.

Comment 1 Adrian Likins 2011-11-16 15:23:43 UTC
If firstboot has already ran, there will be a /etc/sysconfig/firstboot file
created. If this file exists, you will get the error mentioned.

fix is:
rm -rf /etc/sysconfig/firstboot

Comment 2 Mike Khusid 2011-11-17 15:07:09 UTC
or simply run 
# firstboot -r

# firstboot --help
Usage: firstboot [options]

Options:
  -h, --help            show this help message and exit
<snip>
  -r, --reconfig        enable reconfiguration mode
  -t, --test            only test, don't configure the system
  --themeDir=THEMEDIR   set the directory containing the theme [default:
                        /usr/share/firstboot/themes/RHEL]

Comment 3 Keqin Hong 2011-11-18 06:10:23 UTC
(In reply to comment #2)
> or simply run 
> # firstboot -r
> 
> # firstboot --help
> Usage: firstboot [options]
> 
> Options:
>   -h, --help            show this help message and exit
> <snip>
>   -r, --reconfig        enable reconfiguration mode
>   -t, --test            only test, don't configure the system
>   --themeDir=THEMEDIR   set the directory containing the theme [default:
>                         /usr/share/firstboot/themes/RHEL]

Thanks Mike. It seems above only work for RHEL6.
There's no option for firstboot on RHEL5.8, even --help is not supported according to my try.

Adrian's approach of removing /etc/sysconfig/firstboot file does work. The original bug was reported because on RHEL 6.2 we could open firstboot without removing that file or using --reconfig option. Is it a 6.2 bug?