Bug 628241

Summary: Fedora 14 Alpha, post reboot installation steps not working
Product: [Fedora] Fedora Reporter: D.S. Ljungmark <spider>
Component: firstbootAssignee: Martin Gracik <mgracik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 14CC: awilliam, bcl, dmach, jlaska, jonathan, kevin, mgracik, netwiz, pcfe, redwolfe, rhe, robatino, stephent98, thub, vanmeeuwen+fedora
Target Milestone: ---Keywords: Reopened, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: firstboot-1.113-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-19 18:08:46 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:
Bug Depends On:    
Bug Blocks: 611991    
Attachments:
Description Flags
messages.1.log with some firstboot messages at the end none

Description D.S. Ljungmark 2010-08-28 22:14:00 UTC
Description of problem:
the post reboot stages of anaconda ( Adding a user and such ) are never launched.

I installed with the DVD image, got the system to boot into runlevel 3, and firstboot appeared "behind" the login prompt and was not interactable.

Comment 1 D.S. Ljungmark 2010-08-28 22:20:00 UTC
Just a note:  I installed using the "reduced graphics "  option from the DVD,  Not sure if that'd have any bearing on this at all.

Comment 2 D.S. Ljungmark 2010-08-28 22:22:58 UTC
And to clarify: 
   I used the Fedora 14 Alpha media ( not the live dvd)
    Reduced graphics mode on the DVD install :  works
    Post installation vesa graphics in Xorg:  corrupted
    
rpm -q kernel xorg-x11-drv-nouveau xorg-x11-server-Xorg xorg-x11-drv-vesa

kernel-2.6.35.2-9.fc14.x86_64
kernel-2.6.35.4-12.fc14.x86_64
xorg-x11-drv-nouveau-0.0.16-9.20100615gitdb98ad2.fc14.x86_64
xorg-x11-server-Xorg-1.9.0-4.fc14.x86_64
xorg-x11-drv-vesa-2.3.0-1.fc14.x86_64

Comment 3 D.S. Ljungmark 2010-08-28 22:28:26 UTC
(In reply to comment #2)


Disregard, filed this to the wrong bug.

Comment 4 Steve Tyler 2010-09-01 17:27:08 UTC
I'm seeing this after an F14-Alpha net install with a few non-graphics packages removed from the install.

First I worked around this problem using the install disc in rescue mode:
systemd package update breaks default boot target
https://fedoraproject.org/wiki/Common_F14_bugs#systemd-update
Specifically, with:
cd /etc/systemd/system
ln -sf /lib/systemd/system/graphical.target default.target

I removed graphical boot options on the kernel command line, added
"selinux=0 5", and booted with "nomodeset" and the vesa xorg driver.

The gdm login dialog is displayed with "Other..." as the only option.
Typing "ctrl-alt-f6" brings the firstboot dialog to the front.

I'm not sure how to get log files, because it is not possible to switch to a console. Typing "ctrl-alt-fN" has no effect. The firstboot dialog is always displayed.

Comment 5 Steve Tyler 2010-09-01 17:54:40 UTC
After (In reply to comment #4)
...
> I'm not sure how to get log files, because it is not possible to switch to a
> console. Typing "ctrl-alt-fN" has no effect. The firstboot dialog is always
> displayed.

After completing the firstboot process, the display goes black, except for a blinking white underscore. "ctrl-alt-fN" has no effect. The capslock and numlock keys have no effect. There are no flashing lights on the keyboard.

Reboot by pressing the reset button.

Comment 6 Steve Tyler 2010-09-01 18:18:03 UTC
Created attachment 442462 [details]
messages.1.log with some firstboot messages at the end

Sep  1 10:48:16 pecan init[1]: [/lib/systemd/system/firstboot-text.service:11] Unknown lvalue 'ValidNoProcess' in section 'Service'. Ignoring.

Comment 7 Steven Haigh 2010-09-05 17:52:02 UTC
I just did a netinstall of F14.

Seems that /etc/systemd/system/default.target is linked to /etc/systemd/system/runlevel5.target - which doesn't exist.

Removing this link and creating a new link to /lib/systemd/system/runlevel5.target will fix boot errors and allow the system to boot normally.

Without doing this, the system will boot straight to a sushell prompt.

Comment 8 Adam Williamson 2010-09-08 15:19:26 UTC
The basic problem here is that firstboot hasn't been updated for a change to systemd - the line Type=finish in the firstboot systemd service files needs to be changed to Type=oneshot . With that fixed firstboot ought to behave properly again as it did in Alpha, I think. The systemd service files being broken causes all the wackiness people notice with firstboot. I'm going to mark other systemd/firstboot issues reported after the systemd semantic change as dupes of this.

Martin, please make the change mentioned above immediately. I emailed you about this on August 25th, BTW. It will block the Beta.

Comment 9 Adam Williamson 2010-09-08 15:20:01 UTC
*** Bug 631658 has been marked as a duplicate of this bug. ***

Comment 10 Adam Williamson 2010-09-08 15:20:07 UTC
*** Bug 631584 has been marked as a duplicate of this bug. ***

Comment 11 John Poelstra 2010-09-09 04:37:34 UTC
What are the plans for addressing and assessing this bug?  We'd love to have more information before the next blocker meeting this Friday.

Comment 12 Steven Haigh 2010-09-09 05:59:27 UTC
Also, it would be helpful to put the package version of the affected firstboot/systemd in here so people can keep track of a newer release for testing. At the moment, I'm not sure what versions are affected to test newer builds.

Comment 13 Martin Gracik 2010-09-09 06:42:34 UTC
I already fixed the systemd service files, and make a new build on Aug 26th. It should be fixed in firstboot-1.113-1

Comment 14 Steven Haigh 2010-09-09 07:29:38 UTC
Silly question but was the update pushed? All the mirrors I see still seem to have firstboot-1.112-3.fc14.i686.rpm.

Comment 15 Adam Williamson 2010-09-09 16:17:03 UTC
Martin: you never submitted that build as an update. Remember, all F14 builds have to be submitted through Bodhi as updates. Just building it in Koji is not enough.

Comment 16 Fedora Update System 2010-09-10 13:14:14 UTC
firstboot-1.113-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/firstboot-1.113-1.fc14

Comment 17 Martin Gracik 2010-09-10 13:16:50 UTC
Sorry guys, I forgot about Bodhi, I hope it's ok now.

Comment 18 Fedora Update System 2010-09-10 15:13:33 UTC
firstboot-1.113-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update firstboot'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/firstboot-1.113-1.fc14

Comment 19 Ira Malinich 2010-09-10 22:54:22 UTC
After installing firstboot-1.113-1.fc14, I tried booting to runlevel 5.  firstboot was successfully triggered and the /etc/sysconfig/firstboot file was created.
I deleted the file to try again in runlevel 3 to see if the text mode firstboot works, but now firstboot doesn't start in either runlevel 3 or 5.  The /etc/sysconfig/firstboot file is still gone.

Is there somewhere else that firstboot checks to determine whether it needs to launch?

Comment 20 Adam Williamson 2010-09-11 22:08:38 UTC
Yes. When it's been run successfully one time, it disables both the systemd services. You'd have to re-enable them in addition to wiping /etc/sysconfig/firstboot to turn it back 'on'.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 21 Adam Williamson 2010-09-11 22:11:12 UTC
*** Bug 632685 has been marked as a duplicate of this bug. ***

Comment 22 Adam Williamson 2010-09-11 23:34:24 UTC
*** Bug 632880 has been marked as a duplicate of this bug. ***

Comment 23 James Laska 2010-09-13 19:37:55 UTC
(In reply to comment #20)
> Yes. When it's been run successfully one time, it disables both the systemd
> services. You'd have to re-enable them in addition to wiping
> /etc/sysconfig/firstboot to turn it back 'on'.

In order to re-enable firstboot on boot, I also had to run the following command:

# systemctl enable firstboot-graphical.service

Comment 24 D.S. Ljungmark 2010-09-16 05:40:17 UTC
Still an issue with Beta.TC1  DVD-image.   This time, firstboot starts, but doesn't complete. (once you get to the last step, it just hangs). 

Rebooting into single user, applying updates (firstboot among the things that gets updated) and it never executes again, I'm assuming it had completed then.

Comment 25 Adam Williamson 2010-09-16 09:46:09 UTC
tc1 is known broken, it didn't have a good firstboot. I've tested  since then and this is OK now.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 26 Adam Williamson 2010-09-18 08:54:41 UTC
RC1 is now out: if you like, please test and confirm that this is working correctly.

http://serverbeach1.fedoraproject.org/pub/alt/stage/14-Beta.RC1/Fedora/

Thanks!

Comment 27 Andre Robatino 2010-09-18 09:19:20 UTC
Works for me in a default graphical install in both i386 and x86_64.

Comment 28 G.Wolfe Woodbury 2010-09-18 20:45:34 UTC
F14 Beta RC1 firstboot works as it should, closing the bug.

Comment 29 Adam Williamson 2010-09-18 23:25:15 UTC
Please don't. The update has still not been pushed to stable. Can a firstboot maintainer please submit the update to stable ASAP? Thanks.

Comment 30 Steve Tyler 2010-09-19 03:51:40 UTC
(In reply to comment #29)
> Please don't. The update has still not been pushed to stable. Can a firstboot
> maintainer please submit the update to stable ASAP? Thanks.

Thanks, Adam.

If we don't watch out, we will end up like Ubuntu, whipsawing the bug status all in the interest of openness ... :-)

Comment 31 Adam Williamson 2010-09-19 07:01:28 UTC
Steve: it's important because if we close the bug we might forget to push the stable update, and then it'd get missed out of future image builds.

Comment 32 Fedora Update System 2010-09-19 18:05:26 UTC
firstboot-1.113-4.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/firstboot-1.113-4.fc14

Comment 33 Kevin Kofler 2010-09-19 18:08:46 UTC
https://admin.fedoraproject.org/updates/firstboot-1.113-3.fc14,metacity-2.30.0-8.fc14,kdebase-workspace-4.5.1-3.fc14 is now queued for stable. (1.113-4.fc14 is an even later update which is now queued for testing.)