mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-29 04:17:41 +00:00
4f2d4a7709
This paves the way for a consistent organization of boot media and network based boot.
8 lines
369 B
Bash
8 lines
369 B
Bash
#!/bin/sh
|
|
if [ -e $2/boot/kernel ]; then exit 0; fi
|
|
sed -i 's/sle 15/SUSE Linux Enterprise 15/; s/opensuse_leap/openSUSE Leap/' $2/profile.yaml
|
|
ln -s $1/boot/x86_64/loader/linux $2/boot/kernel && \
|
|
ln -s $1/boot/x86_64/loader/initrd $2/boot/initramfs/distribution && \
|
|
mkdir -p $2/boot/EFI/BOOT && \
|
|
ln -s $1/EFI/BOOT/bootx64.efi $1/EFI/BOOT/grub.efi $2/boot/EFI/BOOT/
|