From: Benjamin Thery <benjamin.thery-6ktuUTfB/bM@public.gmane.org>
To: Mark Ryden <markryde-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: sysfs question
Date: Thu, 11 Sep 2008 16:49:41 +0200 [thread overview]
Message-ID: <48C93005.6030806@bull.net> (raw)
In-Reply-To: <dac45060809110701i49acb8e7m7d8e3ccea7c59ab7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Mark,
Indeed booting a distro without sysfs can be tricky because, for
example, initrd might need it (eg. Fedora).
IIRC, to boot without sysfs, in addition to the "root=" option, you
have to create some devices nodes in advance in your /dev tree
(mainly the /dev/sda* ones, plus a bunch of others /dev/urandom,
/dev/null, /dev/console, /dev/tty).
mknod /dev/sda b 8 0
mknod /dev/sda1 b 8 1
...
But my advice to test netns is to apply the tagged directories sysfs
patchses. It is a lot easier (and complete).
Gregkh is merging the patchset to his tree today (he has added 6 out of
the 8 remaining patches this morning) :)
Once the patchset is completely merged I'll update the howto.
Also I can send you tarball too if you want. Which kernel version do you
use?
Regards,
Benjamin
Mark Ryden wrote:
> Hello,
> I am trying to follow the
> Linux Containers - Network Namespace configuration instructions from
> http://lxc.sourceforge.net/network/configuration.php
>
>
> I had built a kernel with CONFIG_SYS=n and CONFIG_NET_NS=y
> and CONFIG_VETH=y , etc, according to the instructions.
>
>
> Now, the CONFIG_SYSFS help text says:
>
> sysfs is currently used by the block subsystem to mount the root
> partition. If sysfs is disabled you must specify the boot device on
> the kernel boot command line via its major and minor numbers. For
> example, "root=03:01" for /dev/hda1.
>
>
> So I added root=08,02 to my kernel boot parameter line and booted.
>
>
> it starts booting, but then gets:
> switchroot: mount failed: No such file or directory.
> Booting has failed.
>
> 8 is the majoror number and 2 is the minor number of /dev/sda2, where I have
> my root partition.
>
> Googling for this found the following, which not helped much:
> http://linux.derkeiler.com/Mailing-Lists/Kernel/2007-11/msg05032.html
>
> Any ideas?
> Regards,
> Mark
> _______________________________________________
> Containers mailing list
> Containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
> https://lists.linux-foundation.org/mailman/listinfo/containers
>
>
--
B e n j a m i n T h e r y - BULL/DT/Open Software R&D
http://www.bull.com
prev parent reply other threads:[~2008-09-11 14:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-11 14:01 sysfs question Mark Ryden
[not found] ` <dac45060809110701i49acb8e7m7d8e3ccea7c59ab7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-09-11 14:05 ` Mark Ryden
[not found] ` <dac45060809110705r2474060bi71c657a23588975f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-09-11 14:26 ` xiaoming.zhang
[not found] ` <200809112226.59518.zxm927-9Onoh4P/yGk@public.gmane.org>
2008-09-11 15:37 ` Daniel Lezcano
[not found] ` <48C93B3D.3050303-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-09-11 15:53 ` xiaoming.zhang
[not found] ` <200809112353.47144.zxm927-9Onoh4P/yGk@public.gmane.org>
2008-09-11 16:40 ` Daniel Lezcano
2008-09-11 14:49 ` Benjamin Thery [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48C93005.6030806@bull.net \
--to=benjamin.thery-6ktuutfb/bm@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=markryde-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox