From f2895952143417e306f9649308e28386ac8240e3 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sun, 2 Aug 2009 12:23:46 +0100 Subject: 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 --- tools/xm-test/ramdisk/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tools/xm-test') diff --git a/tools/xm-test/ramdisk/Makefile.am b/tools/xm-test/ramdisk/Makefile.am index 4a4c7e65cf..8386218ff3 100644 --- a/tools/xm-test/ramdisk/Makefile.am +++ b/tools/xm-test/ramdisk/Makefile.am @@ -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 -- cgit v1.2.3