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.
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
Signed-off-by: Fuad Tabba <email@example.com>
1 file changed