mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 08:20:18 +00:00
tools/run_guest_kernel.sh: Allow passing HV args
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
89a482fcab
commit
690ff9bde8
1 changed files with 5 additions and 4 deletions
|
@ -13,11 +13,12 @@ initramfs=""
|
|||
if [ ! -z "$3" ]; then
|
||||
initramfs="$(realpath "$3")"
|
||||
fi
|
||||
shift 3
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
base="$(dirname "$0")"
|
||||
|
||||
echo "Creating m1n1+kernel image"
|
||||
cp ../../build/m1n1.bin /tmp/m1n1-linux.bin
|
||||
cp "$base"/../../build/m1n1.bin /tmp/m1n1-linux.bin
|
||||
if [ ! -z "$args" ]; then
|
||||
echo "chosen.bootargs=$args" >>/tmp/m1n1-linux.bin
|
||||
fi
|
||||
|
@ -27,6 +28,6 @@ if [ ! -z "$initramfs" ]; then
|
|||
cat "$initramfs" >>/tmp/m1n1-linux.bin
|
||||
fi
|
||||
echo "Chainloading to updated m1n1..."
|
||||
python chainload.py -r ../../build/m1n1.bin
|
||||
python "$base"/chainload.py -r "$base"/../../build/m1n1.bin
|
||||
echo "Starting guest..."
|
||||
exec python run_guest.py -c "load_system_map('$kernel_base/System.map')" -r /tmp/m1n1-linux.bin
|
||||
exec python "$base"/run_guest.py -c "load_system_map('$kernel_base/System.map')" "$@" -r /tmp/m1n1-linux.bin
|
||||
|
|
Loading…
Reference in a new issue