2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-23 08:04:09 +00:00

Bring over disk boot content

This allows construction of remote media and httpboot payloads.
This commit is contained in:
Jarrod Johnson 2020-05-06 14:33:45 -04:00
parent 9180bab761
commit 404041e226
3 changed files with 10 additions and 2 deletions

View File

@ -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/

View File

@ -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/

View File

@ -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/