mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-01 23:18:41 +00:00
hoist kernel command line out of qemu docker image
we want to fiddle with this for selinux, and probably for other things too. Signed-off-by: Tycho Andersen <tycho@docker.com>
This commit is contained in:
@@ -30,7 +30,7 @@ then
|
||||
then
|
||||
ARGS="$ARGS -initrd $INITRD"
|
||||
fi
|
||||
ARGS="$ARGS -append console=ttyS0 -drive file=systemdisk.img,format=raw"
|
||||
ARGS="$ARGS -drive file=systemdisk.img,format=raw"
|
||||
else
|
||||
echo "no recognised boot media" >2
|
||||
exit 1
|
||||
@@ -38,4 +38,10 @@ fi
|
||||
|
||||
echo "$ARGS" | grep -q systemdisk && qemu-img create -f raw systemdisk.img 256M
|
||||
|
||||
qemu-system-x86_64 -device virtio-rng-pci -serial stdio -vnc none -m 1024 $ARGS $*
|
||||
CMDLINE="$*"
|
||||
if [ -z "${CMDLINE}" ]
|
||||
then
|
||||
CMDLINE="console=ttyS0"
|
||||
fi
|
||||
|
||||
qemu-system-x86_64 -device virtio-rng-pci -serial stdio -vnc none -m 1024 -append "${CMDLINE}" $ARGS
|
||||
|
Reference in New Issue
Block a user