WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] UnionFS in initrd

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] UnionFS in initrd
From: Dennis <devel@xxxxxxxxxxxxxxx>
Date: Thu, 10 Nov 2005 09:27:57 -0700
Delivery-date: Thu, 10 Nov 2005 16:28:32 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)
I've played around with UnionFS a bit.  I like the idea for a COW file
system.

Anyhow, I have an initrd file that I'd like to use to set up the unionfs
root. 

Here is the linuxrc file:

== SNIP:linuxrc ==
# unionfs module inserted previously

# these directories already exist in the initrd image
BASE=/mnt/basefs
UNION=/mnt/union
CHANGES=/mnt/userfs

echo "Mount base filesystem.."
mount -t ext3 /dev/sda1 $BASE
echo "Mount user filesystem.."
mount -t ext3 /dev/sda2 $CHANGES

echo "Mount root UnionFS.."
mount -t unionfs -o dirs=$CHANGES=rw:$BASE=ro none $UNION

cd $UNION
mkdir -p initrd
pivot_root . initrd
exec chroot . sbin/init 3 < /dev/console > /dev/console 2>&1
== END ==

So now my issue is:

init: timeout opening/writing control channel /dev/initctl
(After which kernel panic )

If I exec chroot . /bin/bash instead of sbin/init...  I get a shell in
the current unionfs root. (As expected)

Any thoughts on the sbin/init problem?  I'm using a gentoo base file system

-Dennis

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>