Bug 1158035

Summary: Could not determine the kernel command line parameters. Please specify the kernel command line in /etc/kernel/cmdline!
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: systemdAssignee: systemd-maint
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: johannbg, jsynacek, lnykryn, msekleta, rchanter, s, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-07 03:16:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2014-10-28 11:41:24 UTC
Description of problem:

systemd/src/kernel-install/90-loaderentry.install

If /proc/cmdline exists but is empty (which apparently is the case
when building live CDs in Koji), then creation of the initrd fails
with:

Could not determine the kernel command line parameters.
Please specify the kernel command line in /etc/kernel/cmdline!

The error is clear enough, but it's not fixable because:

(1) You can't create this file before doing the install in
a kickstart, and

(2) The file would be empty anyway.

Anyway, why is this even a bug?  Just allow the boot options
to be empty.

Here is the full build if you want to take a look:

http://koji.fedoraproject.org/koji/taskinfo?taskID=7959633

Version-Release number of selected component (if applicable):

Fedora 21 buildroot.
For specific versions see the 'root.log' file in
http://koji.fedoraproject.org/koji/taskinfo?taskID=7959633

How reproducible:

100% in F21 and Rawhide.

Steps to Reproduce:

You won't be able to do this unless you've been granted
special koji permissions.  However the command is:
koji spin-livecd --scratch virt-p2v 1.29.2 rawhide x86_64 p2v.ks
or
koji spin-livecd --scratch virt-p2v 1.29.2 f21-build x86_64 p2v.ks

Actual results:

Live CD doesn't boot, because no initrd is created.