Bug 1001059 - Can't boot into init 1 on LiveCD
Summary: Can't boot into init 1 on LiveCD
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: LiveCD
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-26 12:27 UTC by Kamil Páral
Modified: 2013-08-29 13:28 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-29 13:28:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
password prompt (14.07 KB, image/png)
2013-08-26 12:27 UTC, Kamil Páral
no flags Details

Description Kamil Páral 2013-08-26 12:27:30 UTC
Created attachment 790479 [details]
password prompt

Description of problem:
For a purpose of bug verification, I needed to boot F20 Live into init 1. That system has password-less root account, obviously, since it's a LiveCD. Unfortunately, system requests a password and simply hitting Enter doesn't work, it prints an "invalid argument" error.

I should be able to boot into init 1 with password-less root. Make the prompt accept no password.

Version-Release number of selected component (if applicable):
http://dl.fedoraproject.org/pub/alt/stage/20-Alpha-TC1/Live/x86_64/
systemd-206-6.fc20

How reproducible:
always

Steps to Reproduce:
1. boot the LiveCD with "1" and the end of kernel cmdline

Actual results:
can't log in

Expected results:
can log in

Additional info:
I wonder what happens if the root account is disabled...

Comment 1 Harald Hoyer 2013-08-26 13:13:44 UTC
$ fgrep ExecStart= /lib/systemd/system/rescue.service
ExecStart=-/sbin/sulogin

$ rpm -qf /sbin/sulogin 
util-linux-2.23.2-2.fc19.x86_64


sulogin should be able to cope with the empty password

Comment 2 Karel Zak 2013-08-27 10:46:22 UTC
Note that I'm not able to reproduce the problem with the latest RHEL7 (also util-linux 2.23.2-2) with empty root password in /etc/shadow.

... going to try it with F20 LiveCD.

Comment 3 Karel Zak 2013-08-29 11:39:39 UTC
I see 

  root:*:15921:0:99999:7:::

in LiveCD /etc/shadow. It's really not empty password, see shadow(5) man page for more details. The sulogin(1) command works as expected.

Reassigning...

Comment 4 Kamil Páral 2013-08-29 12:47:33 UTC
I just booted Fedora-Live-Desktop-x86_64-20-Alpha-TC1-1.iso and I see

root::15946:0:99999:7:::

in /etc/shadow. The password is empty. I can log in using "su -" or on tty2 without providing a password.

Karel, which LiveCD did you use?

Comment 5 Kamil Páral 2013-08-29 13:28:41 UTC
So, mystery solved by Karel Zak (thanks). Initially the LiveCD is created with a unusable root account (which is slightly different from locked, I guess). Then in an "livesys" initscript the root password is emptied. But if I boot to single user mode, the emergency password is asked before livesys is run, thus I can't provide the emergency password.

If we changed our kickstart in spin-kickstarts, we could create the LiveCD with no root password right from the beginning. But, since this was the first time I needed something like that and I guess nobody else ever needed it, I'll just close it and won't bother people. If someone ever needs to have this working, he/she can reopen the bug.


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