When booting from ipxe in uefi boot mode, once the node boots with deploy image, ironic is not changing the default menu entry to boot_partition to boot the instance image during next boot. The current changes fix the issue. The kernel parameter "initrd=ramdisk" is also added to the ipxe template which is required for ipxe booting. Closes-Bug: #1532679 Change-Id: Idf78195d228b4861f85fbcae9a269edd95523ad7
20 lines
809 B
Plaintext
20 lines
809 B
Plaintext
#!ipxe
|
|
|
|
dhcp
|
|
|
|
goto deploy
|
|
|
|
:deploy
|
|
kernel http://1.2.3.4:1234/deploy_kernel selinux=0 disk=cciss/c0d0,sda,hda,vda iscsi_target_iqn=iqn-1be26c0b-03f2-4d2e-ae87-c02d7f33c123 deployment_id=1be26c0b-03f2-4d2e-ae87-c02d7f33c123 deployment_key=0123456789ABCDEFGHIJKLMNOPQRSTUV ironic_api_url=http://192.168.122.184:6385 troubleshoot=0 text test_param boot_option=netboot ip=${ip}:${next-server}:${gateway}:${netmask} BOOTIF=${mac} root_device=vendor=fake,size=123 ipa-api-url=http://192.168.122.184:6385 ipa-driver-name=pxe_ssh boot_mode=uefi initrd=deploy_ramdisk coreos.configdrive=0
|
|
|
|
initrd http://1.2.3.4:1234/deploy_ramdisk
|
|
boot
|
|
|
|
:boot_partition
|
|
kernel http://1.2.3.4:1234/kernel root={{ ROOT }} ro text test_param initrd=ramdisk
|
|
initrd http://1.2.3.4:1234/ramdisk
|
|
boot
|
|
|
|
:boot_whole_disk
|
|
sanboot --no-describe
|