Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
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"
|