efi: add 'noautodetect' to kernel commandline

This stops device auto-detect in 'hwdrivers'. On Docker
for Windows driver auto-detect should not be necessary as all
drivers are compiled in.

Further, on slow machines (and in CI) th 'hwdrivers' seems to have
race as it does a 'find' on '/sys/devices' and then performs actions.
On slow machines (and in CI) it appears that VMBus devices get
removed (and possibly re-added) causing the script to error.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2016-11-18 16:21:20 +00:00
parent c27ea491e8
commit 6dedd93cb3

View File

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