[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xm-test: ramdisk fs type is changed to ext3 if needed



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1249212226 -3600
# Node ID fea4b1567fcfeab40bcd8ce3050a073d8bcd5b88
# Parent  c5d518a7c1a9a8d861c13ff5fca327c1c2c27fdd
xm-test: ramdisk fs type is changed to ext3 if needed

This (one line) patch changes the type of the xm-test initrd from ext2
to ext3 when needed.  It first checks, if ext2 support is missing and
ext3 support is available.  If so the fs type is changed to ext3.

Signed-off-by: Andreas Florath <xen@xxxxxxxxxxxx>
---
 tools/xm-test/ramdisk/Makefile.am |    9 +++++++++
 1 files changed, 9 insertions(+)

diff -r c5d518a7c1a9 -r fea4b1567fcf tools/xm-test/ramdisk/Makefile.am
--- a/tools/xm-test/ramdisk/Makefile.am Sun Aug 02 12:22:03 2009 +0100
+++ b/tools/xm-test/ramdisk/Makefile.am Sun Aug 02 12:23:46 2009 +0100
@@ -106,6 +106,15 @@ existing:
                echo Error, $(XMTEST_VER_IMG) not found;  \
                false; \
        fi
+# The newer linux kernels have ext2 disabled by default - but the
+# initrd is ext2.
+# The whole xm-test environment assumes, that the guest system uses
+# the same kernel as the dom0.  Therefore the current (dom0's) kernel
+# is checked if ext2 is supported.  If not (and ext3 is supported) the
+# initrd will be converted to ext3.
+       @cat /proc/filesystems | grep -q ext2 && \
+         cat /proc/filesystems | grep -q ext3 || \
+         /sbin/tune2fs -j $(XMTEST_DL_IMG) >/dev/null || true
 
 clean-local: am_config_clean-local
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.