mirror of
https://github.com/qemu/qemu.git
synced 2024-12-05 17:53:36 +08:00
4fbcdcd742
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>
11 lines
230 B
Bash
Executable File
11 lines
230 B
Bash
Executable File
#!/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"
|