mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
meson: convert migration/initrd-stress
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20200828110734.1638685-17-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3909def82a
commit
4fbcdcd742
4 changed files with 25 additions and 14 deletions
10
tests/migration/initrd-stress.sh
Executable file
10
tests/migration/initrd-stress.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
INITRD="$1"
|
||||
STRESS="$2"
|
||||
|
||||
INITRD_DIR=$(mktemp -d -p '' "initrd-stress.XXXXXX")
|
||||
trap 'rm -rf $INITRD_DIR' EXIT
|
||||
|
||||
cp "$STRESS" "$INITRD_DIR/init"
|
||||
(cd "$INITRD_DIR" && (find | cpio --quiet -o -H newc | gzip -9)) > "$INITRD"
|
Loading…
Add table
Add a link
Reference in a new issue