Skip to content

Commit

Permalink
chore: update start-crc-bundle to use UEFI boot
Browse files Browse the repository at this point in the history
it removes all the legacy kernel related options (kernel, initrd, kernel-cmdline) and replace them with the --bootloader efi.
  • Loading branch information
Luca Stocchi authored and Luca Stocchi committed Oct 2, 2024
1 parent 41bbe77 commit f24270a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions contrib/scripts/start-crc-bundle.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@ set -exu

YQ=${YQ:-yq}
BUNDLE_PATH=$1
KERNEL=$(cat ${BUNDLE_PATH}/crc-bundle-info.json | ${YQ} .nodes[0].kernel)
INITRD=$(cat ${BUNDLE_PATH}/crc-bundle-info.json | ${YQ} .nodes[0].initramfs)
CMDLINE=$(cat ${BUNDLE_PATH}/crc-bundle-info.json | ${YQ} .nodes[0].kernelCmdLine)
EFISTORE_PATH="$HOME/.crc/machines/crc/efistore.nvram"
DISKIMG=$(cat ${BUNDLE_PATH}/crc-bundle-info.json | ${YQ} .storage.diskImages[0].name)
cp -c ${BUNDLE_PATH}/${DISKIMG} overlay.img

./out/vfkit --cpus 2 --memory 2048 \
--kernel "${BUNDLE_PATH}/${KERNEL}" \
--initrd "${BUNDLE_PATH}/${INITRD}" \
--kernel-cmdline "${CMDLINE}" \
--bootloader efi,variable-store=${EFISTORE_PATH},create \
--device virtio-blk,path=overlay.img \
--device virtio-serial,logFilePath=start-bundle.log \
--device virtio-net,nat,mac=72:20:43:d4:38:62 \
Expand Down

0 comments on commit f24270a

Please sign in to comment.