diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2025-10-24 12:01:38 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2025-10-24 12:02:06 +0200 |
| commit | ab683cc638ce8d9a233aad10f28aa6ac441dd562 (patch) | |
| tree | 88e4322dd3157df293203de81cfaafc0013a7340 | |
| parent | 7e52878f0aaad5256a01581f11338c47d69d5fbb (diff) | |
| download | dotfiles-ab683cc638ce8d9a233aad10f28aa6ac441dd562.tar.gz dotfiles-ab683cc638ce8d9a233aad10f28aa6ac441dd562.zip | |
run-riscv-qemu: move to KERNEL in error messages
Commit 295231706308 ("bin: Guess the QEMU_KERNEL to be used based on
cwd") introduced QEMU_KERNEL into this script, but actually we have
moved to KERNEL instead. Hence, use that as well in error messages.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
| -rwxr-xr-x | bin/run-riscv-qemu.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/run-riscv-qemu.sh b/bin/run-riscv-qemu.sh index 77bf808..bdcb2b5 100755 --- a/bin/run-riscv-qemu.sh +++ b/bin/run-riscv-qemu.sh @@ -72,15 +72,15 @@ if [ -z "$KERNEL" ]; then if [ -f "arch/$ARCH/boot/Image" ]; then KERNEL=$(realpath "arch/$ARCH/boot/Image") else - echo "run-riscv-qemu (error): you need to define QEMU_KERNEL with the Image to be used." + echo "run-riscv-qemu (error): you need to define '-k/--kernel'." exit 1 fi - echo "run-riscv-qemu (info): using '$QEMU_KERNEL' as the Linux kernel Image." else - echo "run-riscv-qemu (error): you need to define QEMU_KERNEL with the Image to be used." + echo "run-riscv-qemu (error): you need to define '-k/--kernel'." exit 1 fi fi +echo "run-riscv-qemu (info): using '\$KERNEL' as the Linux kernel Image." ## # If the user provided a disk option, run QEMU with that disk in mind. @@ -112,6 +112,7 @@ fi # Cleanup older environments. rm -rf "$BUSYBOX_SRC/initramfs/home" +mkdir -p "$BUSYBOX_SRC/initramfs/home" pushd "$BUSYBOX_SRC/initramfs" find . -print0 | cpio --null -o --format=newc | gzip -9 >../initramfs.cpio.gz |
