Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189686 - baselayout-2.0.0_rc3-r1 vserver: "failed to open `/proc/cmdline'"
Summary: baselayout-2.0.0_rc3-r1 vserver: "failed to open `/proc/cmdline'"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-21 10:28 UTC by Christian Affolter
Modified: 2007-08-22 14:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
baselayout-2.0.0_rc3 vserver /proc/cmdline patch (baselayout-2.0.0_rc3-cmdline-vps.patch,721 bytes, patch)
2007-08-21 10:29 UTC, Christian Affolter
Details | Diff
Only read /proc/cmdline if it exists (vps.patch,389 bytes, patch)
2007-08-21 10:33 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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