Bug 3611 - sysv init scripts does not regard the kernel command line parameters
Summary: sysv init scripts does not regard the kernel command line parameters
Status: RESOLVED NOTABUG
Alias: None
Product: System Startup
Classification: Runtime
Component: system-startup (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.4 M4
Assignee: Chen Qi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 3612
  Show dependency tree
 
Reported: 2012-12-17 05:32 UTC by Chen Qi
Modified: 2013-02-26 08:56 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chen Qi 2012-12-17 05:32:35 UTC
The current version of initscripts in our system doesn't regard the kernel command line parameters, while it should. 
For example, if 'fastboot' is specified in kernel command line, checkroot should be skipped.
Another example is hostname. There's a commit in OE-core.
commit 9c2bb6822cd23759fbaf4ef5f05f27cf766f3bfb
Author: Mark Asselstine <mark.asselstine@windriver.com>
Date:   Sat Sep 8 08:42:21 2012 -0500

    base-files: provide a mechanism to skip creation of the hostname file
    
    The existence of a /etc/hostname file causes any hostname provided on
    the kernel command line or via dhcp to be overwritten by the
    initscripts 'init.d/hostname.sh'. This change allows you to set a
    value of "" for 'hostname' which will skip the creation of the
    /etc/hostname file by the base-files package.

I think the better way to do this is to let the hostname.sh take into consideration the kernel command line parameters.

The newer version of sysv init scripts has already have this support. 

I'd like to note this bug as related to bug#3435 because they both involve sysv init scripts optimization.
Comment 1 Chen Qi 2013-02-26 08:56:58 UTC
The hostname could be set in base-files bbappend file.
And setting hostname to "" has already provide the mechanism of skip the creation of /etc/hostname file.
So it seems unnecessary to do the fix.

Mark this bug as RESOLVED/NOTABUG.