Setting kernel boot parametters recommended for Azure/HyperV

Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
This commit is contained in:
Simon Ferquel 2016-11-14 08:53:29 -05:00
parent 9480827b98
commit 1edae91c22

View File

@ -9,7 +9,7 @@ COPY kernel/x86_64/vmlinuz64 ./
# Create a EFI boot file with kernel and initrd. From:
# https://github.com/haraldh/mkrescue-uefi/blob/master/mkrescue-uefi.sh
RUN cp /usr/lib/gummiboot/linuxx64.efi.stub . && \
echo "earlyprintk=serial console=ttyS0 mobyplatform=windows" > cmdline.txt && \
echo "earlyprintk=ttyS0,115200 console=ttyS0,115200 mobyplatform=windows rootdelay=300" > cmdline.txt && \
objcopy \
--add-section .osrel=/etc/os-release --change-section-vma .osrel=0x20000 \
--add-section .cmdline=./cmdline.txt --change-section-vma .cmdline=0x30000 \