grub configuration should use user kernel & ramdisk

compared with pxe_config.template, ramdisk boot with grub should use
aki_path and ari_path

Change-Id: Ibedf375cfeeb20917f06e52b1e86a6990a3c494b
Story: 2006639
Task: 36855
This commit is contained in:
shenjiatong 2019-09-29 09:01:24 +08:00 committed by Julia Kreger
parent fd8b9747cb
commit 2364c8b247
3 changed files with 9 additions and 4 deletions

View File

@ -13,8 +13,8 @@ menuentry "boot_partition" {
}
menuentry "boot_ramdisk" {
linuxefi {{ pxe_options.deployment_aki_path }} root=/dev/ram0 text {{ pxe_options.pxe_append_params|default("", true) }} {{ pxe_options.ramdisk_opts|default('', true) }}
initrdefi {{ pxe_options.deployment_ari_path }}
linuxefi {{ pxe_options.aki_path }} root=/dev/ram0 text {{ pxe_options.pxe_append_params|default("", true) }} {{ pxe_options.ramdisk_opts|default('', true) }}
initrdefi {{ pxe_options.ari_path }}
}
menuentry "boot_whole_disk" {

View File

@ -13,8 +13,8 @@ menuentry "boot_partition" {
}
menuentry "boot_ramdisk" {
linuxefi /tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/deploy_kernel root=/dev/ram0 text test_param ramdisk_param
initrdefi /tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/deploy_ramdisk
linuxefi /tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/kernel root=/dev/ram0 text test_param ramdisk_param
initrdefi /tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/ramdisk
}
menuentry "boot_whole_disk" {

View File

@ -0,0 +1,5 @@
---
fixes:
- Fixes a bug with the grub ramdisk boot template handling, such that the template now properly
references the user provided kernal and ramdisk. Previously the deployment ramdisk and kernel
was referenced in the template.