diff options
author | Liav A <liavalb@gmail.com> | 2021-07-09 23:11:50 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-13 23:24:16 +0200 |
commit | 11fe38346c67a26ac9b3668f8c5b0d2766c0412e (patch) | |
tree | 67a64b516bbf2c92b05663a4c0145d228c9ab8cf /Meta/run.sh | |
parent | c92c944356ae88d0064988f1a00a3469463cb9f5 (diff) | |
download | serenity-11fe38346c67a26ac9b3668f8c5b0d2766c0412e.zip |
Meta: Remove options of explicit command line runners in run script
Let's remove the qcmd and q35_cmd options and instead have a simple
"q35" run option. Specifiying the kernel command line was a neat trick
I personally used for many debug sessions, but it seems better to stick
to setting it internally in the kernel or modifying the shell
SERENITY_KERNEL_CMDLINE environment variable to do this.
Diffstat (limited to 'Meta/run.sh')
-rwxr-xr-x | Meta/run.sh | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/Meta/run.sh b/Meta/run.sh index d17254b657..7f0f50cb92 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -211,11 +211,9 @@ elif [ "$SERENITY_RUN" = "qgrub" ]; then $SERENITY_PACKET_LOGGING_ARG \ -netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-10.0.2.15:8888,hostfwd=tcp:127.0.0.1:8823-10.0.2.15:23 \ -device e1000,netdev=breh -elif [ "$SERENITY_RUN" = "q35_cmd" ]; then - # Meta/run.sh q35_cmd: qemu (q35 chipset) with SerenityOS with custom commandline - shift - SERENITY_KERNEL_CMDLINE="$*" - echo "Starting SerenityOS, Commandline: ${SERENITY_KERNEL_CMDLINE}" +elif [ "$SERENITY_RUN" = "q35" ]; then + # Meta/run.sh q35: qemu (q35 chipset) with SerenityOS + echo "Starting SerenityOS with QEMU Q35 machine, Commandline: ${SERENITY_KERNEL_CMDLINE}" "$SERENITY_QEMU_BIN" \ $SERENITY_COMMON_QEMU_Q35_ARGS \ $SERENITY_VIRT_TECH_ARG \ @@ -223,18 +221,6 @@ elif [ "$SERENITY_RUN" = "q35_cmd" ]; then -device e1000,netdev=breh \ -kernel Kernel/Kernel \ -append "${SERENITY_KERNEL_CMDLINE}" -elif [ "$SERENITY_RUN" = "qcmd" ]; then - # Meta/run.sh qcmd: qemu with SerenityOS with custom commandline - shift - SERENITY_KERNEL_CMDLINE="$*" - echo "Starting SerenityOS, Commandline: ${SERENITY_KERNEL_CMDLINE}" - "$SERENITY_QEMU_BIN" \ - $SERENITY_COMMON_QEMU_ARGS \ - $SERENITY_VIRT_TECH_ARG \ - -netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-10.0.2.15:8888,hostfwd=tcp:127.0.0.1:8823-10.0.2.15:23 \ - -device e1000,netdev=breh \ - -kernel Kernel/Kernel \ - -append "${SERENITY_KERNEL_CMDLINE}" elif [ "$SERENITY_RUN" = "ci" ]; then # Meta/run.sh ci: qemu in text mode echo "Running QEMU in CI" |