Red Hat Bugzilla – Bug 1001059
Can't boot into init 1 on LiveCD
Last modified: 2013-08-29 09:28:41 EDT
Created attachment 790479 [details]
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):
Steps to Reproduce:
1. boot the LiveCD with "1" and the end of kernel cmdline
can't log in
can log in
I wonder what happens if the root account is disabled...
$ fgrep ExecStart= /lib/systemd/system/rescue.service
$ rpm -qf /sbin/sulogin
sulogin should be able to cope with the empty password
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.
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.
I just booted Fedora-Live-Desktop-x86_64-20-Alpha-TC1-1.iso and I see
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?
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.