diff --git a/efiboot/loader/entries/03-test copy.conf b/efiboot/loader/entries/03-test copy.conf deleted file mode 100644 index 836a171..0000000 --- a/efiboot/loader/entries/03-test copy.conf +++ /dev/null @@ -1,6 +0,0 @@ -title HoloISO installer (beta, with LTS) -linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-lts -initrd /%INSTALL_DIR%/boot/intel-ucode.img -initrd /%INSTALL_DIR%/boot/amd-ucode.img -initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-lts.img -options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% cow_spacesize=10G copytoram diff --git a/efiboot/loader/entries/03-test.conf b/efiboot/loader/entries/03-test.conf deleted file mode 100644 index 6a0a162..0000000 --- a/efiboot/loader/entries/03-test.conf +++ /dev/null @@ -1,6 +0,0 @@ -title HoloISO installer (beta, with SD 5.13) -linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-neptune -initrd /%INSTALL_DIR%/boot/intel-ucode.img -initrd /%INSTALL_DIR%/boot/amd-ucode.img -initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-neptune.img -options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% cow_spacesize=10G copytoram diff --git a/efiboot/loader/loader.conf b/efiboot/loader/loader.conf index 9460902..a598431 100644 --- a/efiboot/loader/loader.conf +++ b/efiboot/loader/loader.conf @@ -1,2 +1 @@ -timeout 15 -default 01-archiso-x86_64-ram-linux-neptune.conf \ No newline at end of file +timeout 15 \ No newline at end of file diff --git a/gen_entries.sh b/gen_entries.sh new file mode 100644 index 0000000..4c500f1 --- /dev/null +++ b/gen_entries.sh @@ -0,0 +1,14 @@ +#!/bin/bash +PROFILEDIR=$1 +count=1 +for kernel in $(cat ${PROFILEDIR}/kernel_list.bootstrap) +do + kernel=$(echo $kernel | sed 's/.*linux/linux/g' | sed 's/.*headers//g') + if [ -z "$kernel" ]; then + continue + fi + echo -e "title HoloISO installer (${kernel}, Copy to RAM)\nlinux /%INSTALL_DIR%/boot/x86_64/vmlinuz-${kernel}\ninitrd /%INSTALL_DIR%/boot/intel-ucode.img\ninitrd /%INSTALL_DIR%/boot/amd-ucode.img\ninitrd /%INSTALL_DIR%/boot/x86_64/initramfs-${kernel}.img\noptions archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% cow_spacesize=10G copytoram" > ${PROFILEDIR}/efiboot/loader/entries/$count-$kernel-copytoram.conf + count=$((count+1)) + echo -e "title HoloISO installer (${kernel})\nlinux /%INSTALL_DIR%/boot/x86_64/vmlinuz-${kernel}\ninitrd /%INSTALL_DIR%/boot/intel-ucode.img\ninitrd /%INSTALL_DIR%/boot/amd-ucode.img\ninitrd /%INSTALL_DIR%/boot/x86_64/initramfs-${kernel}.img\noptions archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%" > ${PROFILEDIR}/efiboot/loader/entries/$count-$kernel.conf + count=$((count+1)) +done \ No newline at end of file