1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:27:35 +00:00

Kernel: Expose kernel command line to userspace through /proc/cmdline

This commit is contained in:
Robin Burchell 2019-06-16 14:05:07 +02:00 committed by Andreas Kling
parent 267672efee
commit 0a3abcc0a8
2 changed files with 14 additions and 1 deletions

View file

@ -2,7 +2,7 @@
[ -z "$SERENITY_QEMU_BIN" ] && SERENITY_QEMU_BIN="qemu-system-i386"
SERENITY_KERNEL_CMDLINE="hello"
[ -z "$SERENITY_KERNEL_CMDLINE" ] && SERENITY_KERNEL_CMDLINE="hello"
export SDL_VIDEO_X11_DGAMOUSE=0
@ -18,6 +18,7 @@ elif [ "$1" = "qn" ]; then
-debugcon stdio \
-device e1000 \
-kernel kernel \
-append "${SERENITY_KERNEL_CMDLINE}" \
-hda _disk_image \
-soundhw pcspk
elif [ "$1" = "qtap" ]; then
@ -31,6 +32,7 @@ elif [ "$1" = "qtap" ]; then
-netdev tap,ifname=tap0,id=br0 \
-device e1000,netdev=br0 \
-kernel kernel \
-append "${SERENITY_KERNEL_CMDLINE}" \
-hda _disk_image \
-soundhw pcspk
elif [ "$1" = "qgrub" ]; then
@ -56,6 +58,7 @@ else
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-192.168.5.2:8888 \
-device e1000,netdev=breh \
-kernel kernel \
-append "${SERENITY_KERNEL_CMDLINE}" \
-hda _disk_image \
-soundhw pcspk
fi