2021-05-19 21:12:56 +00:00
|
|
|
#!/bin/sh
|
2021-12-03 13:48:27 +00:00
|
|
|
profname=$(basename $2)
|
|
|
|
if file -L $1/images/ignition.img | grep gzip > /dev/null; then
|
|
|
|
mkdir -p /var/lib/confluent/private/os/${profname}/pending/
|
|
|
|
cd /var/lib/confluent/private/os/${profname}/pending/
|
|
|
|
zcat $1/images/ignition.img | cpio -dumiv
|
|
|
|
fi
|
2021-05-19 21:12:56 +00:00
|
|
|
ln -s $1/images/pxeboot/vmlinuz $2/boot/kernel && \
|
|
|
|
ln -s $1/images/pxeboot/initrd.img $2/boot/initramfs/distribution && \
|
|
|
|
mkdir -p $2/boot/efi/boot/ && \
|
2021-05-21 15:11:01 +00:00
|
|
|
ln -s $1/images/pxeboot/rootfs.img $2/ && \
|
2021-11-29 21:03:06 +00:00
|
|
|
(mcopy -i $1/images/efiboot.img ::efi/redhat/grubx64.efi $2/boot/efi/boot/ || \
|
|
|
|
mcopy -i $1/images/efiboot.img ::efi/boot/grubx64.efi $2/boot/efi/boot/) && \
|
|
|
|
mcopy -i $1/images/efiboot.img ::efi/boot/bootx64.efi $2/boot/efi/boot/
|