cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

initrd-stress.sh (230B)


      1#!/bin/sh
      2
      3INITRD="$1"
      4STRESS="$2"
      5
      6INITRD_DIR=$(mktemp -d -p '' "initrd-stress.XXXXXX")
      7trap 'rm -rf $INITRD_DIR' EXIT
      8
      9cp "$STRESS" "$INITRD_DIR/init"
     10(cd "$INITRD_DIR" && (find | cpio --quiet -o -H newc | gzip -9)) > "$INITRD"