From 404041e226ff5b681fd27b5649e47a5bc54f6fd6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 6 May 2020 14:33:45 -0400 Subject: [PATCH] Bring over disk boot content This allows construction of remote media and httpboot payloads. --- confluent_osdeploy/el8/profiles/default/initprofile.sh | 2 ++ confluent_osdeploy/suse15/profiles/default/initprofile.sh | 4 +++- .../ubuntu20.04/profiles/default/initprofile.sh | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/el8/profiles/default/initprofile.sh b/confluent_osdeploy/el8/profiles/default/initprofile.sh index b96eb150..9d2637d5 100644 --- a/confluent_osdeploy/el8/profiles/default/initprofile.sh +++ b/confluent_osdeploy/el8/profiles/default/initprofile.sh @@ -1,4 +1,6 @@ #!/bin/sh ln -s $1/images/pxeboot/vmlinuz $2/boot/kernel && \ ln -s $1/images/pxeboot/initrd.img $1/boot/initramfs/distribution +mkdir -p $2/boot/media/EFI/BOOT && \ +ln -s $1/EFI/BOOT/BOOTX64.EFI $1/1/EFI/BOOT/grubx64.efi $2/boot/media/EFI/BOOT/ diff --git a/confluent_osdeploy/suse15/profiles/default/initprofile.sh b/confluent_osdeploy/suse15/profiles/default/initprofile.sh index dd8cdd8c..110fca60 100644 --- a/confluent_osdeploy/suse15/profiles/default/initprofile.sh +++ b/confluent_osdeploy/suse15/profiles/default/initprofile.sh @@ -1,3 +1,5 @@ #!/bin/sh ln -s $1/1/boot/x86_64/loader/linux $2/boot/kernel && \ -ln -s $1/1/boot/x86_64/loader/initrd $2/boot/initramfs/distribution +ln -s $1/1/boot/x86_64/loader/initrd $2/boot/initramfs/distribution && \ +mkdir -p $2/boot/media/EFI/BOOT && \ +ln -s $1/1/EFI/BOOT/bootx64.efi $1/1/EFI/BOOT/grub.efi $2/boot/media/EFI/BOOT/ diff --git a/confluent_osdeploy/ubuntu20.04/profiles/default/initprofile.sh b/confluent_osdeploy/ubuntu20.04/profiles/default/initprofile.sh index 5d493bd4..2affa063 100644 --- a/confluent_osdeploy/ubuntu20.04/profiles/default/initprofile.sh +++ b/confluent_osdeploy/ubuntu20.04/profiles/default/initprofile.sh @@ -1,3 +1,7 @@ #!/bin/sh +sed -i s/ubuntu/Ubuntu/ $2/profile.yaml && \ ln -s $1/casper/vmlinuz $2/boot/kernel && \ -ln -s $1/casper/initrd $2/boot/initramfs/distribution +ln -s $1/casper/initrd $2/boot/initramfs/distribution && \ +mkdir -p $2/boot/media/EFI/BOOT && \ +ln -s $1/EFI/BOOT/* $2/boot/media/EFI/BOOT/ +