You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/tests/migration/initrd-stress.sh

11 lines
230 B
Bash

#!/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"