Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 189686

Summary: baselayout-2.0.0_rc3-r1 vserver: "failed to open `/proc/cmdline'"
Product: Gentoo Linux Reporter: Christian Affolter <c.affolter>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: baselayout-2.0.0_rc3 vserver /proc/cmdline patch
Only read /proc/cmdline if it exists

Description Christian Affolter 2007-08-21 10:28:39 UTC
The rc manager tries to read the /proc/cmdline file while booting a vserver. This results in the following boot error message:
failed to open `/proc/cmdline': No such file or directory

Reproducible: Always

Steps to Reproduce:
1. Install a vserver with the latest baselayout and the init-style set to gentoo
2. start the vserver

Actual Results:  
   Gentoo/Linux; http://www.gentoo.org/
   Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2

Press I to enter interactive boot mode

 * /proc is already mounted, skipping
 * Using existing device nodes in /dev ...                                [ ok ]
 * failed to open `/proc/cmdline': No such file or directory
 * Checking all filesystems ...                                           [ ok ]
[...]

Expected Results:  
No error messages, during startup ;)

Either unhide the /proc/cmdline within a vserver (however a vserver shouldn't be interested within the kernel's boot command line) or apply the attached patch for rc.c
Comment 1 Christian Affolter 2007-08-21 10:29:47 UTC
Created attachment 128750 [details, diff]
baselayout-2.0.0_rc3 vserver /proc/cmdline patch
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-08-21 10:33:18 UTC
Created attachment 128752 [details, diff]
Only read /proc/cmdline if it exists

Try this one - if /proc/cmdline exists then we read it, otherwise we don't
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-08-22 14:11:10 UTC
I've comitted my patch anyway, as I'm pretty sure it works.

Thanks