ia64/xen-unstable

changeset 9347:8fda66ee616b

Add mounting /sys for 2.6 xm-test images.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
author stekloff@dyn9047022152.beaverton.ibm.com
date Tue Mar 21 01:10:46 2006 +0100 (2006-03-21)
parents a6f1b3d653a9
children 5bf6549aba96
files tools/xm-test/ramdisk/Makefile.am tools/xm-test/ramdisk/skel/etc/init.d/rcS
line diff
     1.1 --- a/tools/xm-test/ramdisk/Makefile.am	Tue Mar 21 01:08:59 2006 +0100
     1.2 +++ b/tools/xm-test/ramdisk/Makefile.am	Tue Mar 21 01:10:46 2006 +0100
     1.3 @@ -14,6 +14,8 @@ HVM_SCRIPT = bin/create_disk_image
     1.4  XMTEST_MAJ_VER = $(shell echo @PACKAGE_VERSION@ | perl -pe 's/(\d+)\.(\d+)\.\d+/\1.\2/')
     1.5  XMTEST_VER_IMG = initrd-$(XMTEST_MAJ_VER).img
     1.6  
     1.7 +EXTRA_ROOT_DIRS = sys
     1.8 +
     1.9  if HVM
    1.10  all: initrd.img disk.img
    1.11  else
    1.12 @@ -36,7 +38,8 @@ endif
    1.13  
    1.14  $(XMTEST_VER_IMG): $(BR_IMG)
    1.15  	chmod a+x skel/etc/init.d/rcS
    1.16 -	(cd skel; tar cf - .) | (cd $(BR_SRC)/$(BR_ROOT); tar xvf -)
    1.17 +	(cd skel; mkdir -p $(EXTRA_ROOT_DIRS); tar cf - .) \
    1.18 +		| (cd $(BR_SRC)/$(BR_ROOT); tar xvf -)
    1.19  	cd $(BR_SRC) && make
    1.20  	cp $(BR_IMG) initrd-$(XMTEST_MAJ_VER).img
    1.21  
     2.1 --- a/tools/xm-test/ramdisk/skel/etc/init.d/rcS	Tue Mar 21 01:08:59 2006 +0100
     2.2 +++ b/tools/xm-test/ramdisk/skel/etc/init.d/rcS	Tue Mar 21 01:10:46 2006 +0100
     2.3 @@ -2,3 +2,7 @@
     2.4  
     2.5  mount -a
     2.6  
     2.7 +# If we're running 2.6, make sure /sys is mounted
     2.8 +if uname -r | grep -q '^2.6'; then
     2.9 +	mount -t sysfs none /sys
    2.10 +fi