From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: sysfs question Date: Thu, 11 Sep 2008 17:37:33 +0200 Message-ID: <48C93B3D.3050303@fr.ibm.com> References: <200809112226.59518.zxm927@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200809112226.59518.zxm927-9Onoh4P/yGk@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "xiaoming.zhang" , Mark Ryden Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, benjamin Thery List-Id: containers.vger.kernel.org xiaoming.zhang wrote: > On Thursday 11 September 2008 10:05:43 pm Mark Ryden wrote: >> In fact, after looking more closely, I see that before that message >> appears: Error: unmouting old /sys >> ERROR unmounting old /sys: Invalid argument. >> forcing unmount of /sys >> switchroot... >> > > My experience is you'd better to find a sysfs patch, since the sysfs > filesystem is required by ramdisk and some system utilities, e.g., system > network configuration scripts. > > Patch for mm-tree can be found here: > http://lxc.sourceforge.net/patches/2.6.26/ > > This is what I used: > http://lxc.sourceforge.net/patches/2.6.26/2.6.26-rc8-mm1-lxc1/broken-out/sysfs/ > > I merged these 11 patches on Linux-2.6.26.1 though I don't understand these > patches, luckily enough it worked for me. As mentioned Benjamin, it is hard to boot a distro without sysfs. I think it is a good idea to use the lxc patchset. You can use the latest version: http://lxc.sourceforge.net/patches/2.6.27/2.6.27-rc6-lxc1/ If you want to play with the container, you have the userspace tools at: http://lxc.sourceforge.net/download/lxc/ Don't forget to check the README in the directory ;) -- Daniel