Script to pack files and run a command in one file

Add a script that packs files specified in the command line as
base64, and runs a specified command, all in one bash script.

This will be used to package the VMM, as well as any images it
requires, in one file, and then run it. This will be passed as
the block device to the existing rootfs, which runs /dev/vdb.

Bug: 171310818
Test: From build/aarch64, run
      ./package_payloads.sh -c "chmod +x grep; ./grep -i kvm run_gdb.sh run_qemu.sh" /usr/bin/grep run_gdb.sh run_qemu.sh | bash
Output should be matches to kvm in run_gdb.sh and run_qemu.sh

Change-Id: I91ce46c7ffafaac18aadfb53a3fa82c74804a66e
Signed-off-by: Fuad Tabba <tabba@google.com>
1 file changed
tree: 51a836df1c011165870a17098fd119779328e983
  1. aarch64/
  2. kvm-unit-tests/
  3. common.inc
  4. Makefile