[Fusionforge-commits] r12541 - trunk/tests/lxc

Christian Bayle cbayle at fusionforge.org
Thu Mar 3 01:22:48 CET 2011


Author: cbayle
Date: 2011-03-03 01:22:47 +0100 (Thu, 03 Mar 2011)
New Revision: 12541

Modified:
   trunk/tests/lxc/Makefile
   trunk/tests/lxc/lxc-centos5
Log:
wip on centos5


Modified: trunk/tests/lxc/Makefile
===================================================================
--- trunk/tests/lxc/Makefile	2011-03-02 21:39:07 UTC (rev 12540)
+++ trunk/tests/lxc/Makefile	2011-03-03 00:22:47 UTC (rev 12541)
@@ -100,9 +100,19 @@
 startdeb:
 	sudo LANG=C /usr/bin/lxc-start -n debian6.local -d
 
+stopdeb:
+	sudo LANG=C /usr/bin/lxc-stop -n debian6.local
+
 startcos:
 	sudo LANG=C /usr/bin/lxc-start -n centos5.local
 
+screencos:
+	screen -dmS lxc-centos sudo /usr/bin/lxc-start -n centos5.local
+	#screen -x lxc-centos
+
+stopcos:
+	sudo LANG=C /usr/bin/lxc-stop -n centos5.local
+
 destroydeb: beroot
 	sudo LANG=C /usr/bin/lxc-stop -n debian6.local
 	sudo LANG=C /usr/bin/lxc-destroy -n debian6.local

Modified: trunk/tests/lxc/lxc-centos5
===================================================================
--- trunk/tests/lxc/lxc-centos5	2011-03-02 21:39:07 UTC (rev 12540)
+++ trunk/tests/lxc/lxc-centos5	2011-03-03 00:22:47 UTC (rev 12541)
@@ -111,7 +111,20 @@
     echo "Please change root-password !"
     echo "root:root" | chroot $rootfs chpasswd
 
-mkdir -p $rootfs/dev/pts
+#sed -i -e '/getty/d' $rootfs/etc/inittab
+sed -i -e '/start_udev/d' $rootfs/etc/rc.d/rc.sysinit
+
+rm -f $rootfs/etc/mtab
+ln -s /proc/mounts $rootfs/etc/mtab
+
+test -e $rootfs/dev/ptmx || mknod $rootfs/dev/ptmx c 5 2
+test -e $rootfs/dev/pts || mkdir $rootfs/dev/pts
+test -e $rootfs/dev/null || mknod $rootfs/dev/null c 1 3
+test -e $rootfs/dev/random || mknod -m 644 $rootfs/dev/random c 1 8
+test -e $rootfs/dev/urandom || mknod $rootfs/dev/urandom c 1 9
+
+#test -e $rootfs/dev/pts/0 || mknod $rootfs/dev/pts/0 c 136 0
+
 test -e $rootfs/dev/tty || mknod $rootfs/dev/tty c 5 0
 test -e $rootfs/dev/console || mknod $rootfs/dev/console c 5 1
 test -e $rootfs/dev/tty0 || mknod $rootfs/dev/tty0 c 4 0




More information about the Fusionforge-commits mailing list