diff --git a/proxyclient/tools/run_guest_kernel.sh b/proxyclient/tools/run_guest_kernel.sh index 67858b3f..df9e9d2d 100755 --- a/proxyclient/tools/run_guest_kernel.sh +++ b/proxyclient/tools/run_guest_kernel.sh @@ -15,10 +15,12 @@ fi kernel_base="$(realpath "$1")" args="$2" initramfs="" -if [ -n "$3" ]; then - initramfs="$(realpath "$3")" +shift 2 + +if [ -n "$1" ]; then + initramfs="$(realpath "$1")" + shift fi -shift 3 if [ -z "$kernel" ]; then kernel="$kernel_base"/arch/arm64/boot/Image.gz