diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-08-02 12:23:46 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-08-02 12:23:46 +0100 |
commit | f2895952143417e306f9649308e28386ac8240e3 (patch) | |
tree | de29cfa25757e34d4cce913ade9ac88ebea80feb /tools/xm-test | |
parent | 00ee63bf9731266562c13d82ca42525e9d70a93a (diff) | |
download | xen-f2895952143417e306f9649308e28386ac8240e3.tar.gz xen-f2895952143417e306f9649308e28386ac8240e3.tar.bz2 xen-f2895952143417e306f9649308e28386ac8240e3.zip |
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@flonatel.org>
Diffstat (limited to 'tools/xm-test')
-rw-r--r-- | tools/xm-test/ramdisk/Makefile.am | 9 |
1 files changed, 9 insertions, 0 deletions
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 |