Test all of the supported network cards for pc
[qemu-test.git] / util / mktest-initramfs.sh
1 #!/bin/sh
2
3 src=$1
4 shift
5
6 tmpdir=$(pwd)/.tmp-$$
7
8 mkdir $tmpdir
9
10 (gzip -d < $src | (cd $tmpdir; cpio -i --make-directories; cd ..)) 2>/dev/null
11
12 mkdir -p $tmpdir/tests
13 for i in "$@"; do
14 cp $i $tmpdir/tests/
15 done
16
17 cd $tmpdir
18 (find . -print | cpio -H newc -o | gzip) 2>/dev/null
19 cd ..
20
21 rm -rf $tmpdir