From ade555c339f21b66d5168e11bd04dd46749095c8 Mon Sep 17 00:00:00 2001 From: ferreo Date: Wed, 11 Dec 2024 00:51:29 +0100 Subject: [PATCH] Update pika-refind-btrfs-hooks/usr/bin/gen-pika-refind-btrfs-stanza --- pika-refind-btrfs-hooks/usr/bin/gen-pika-refind-btrfs-stanza | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pika-refind-btrfs-hooks/usr/bin/gen-pika-refind-btrfs-stanza b/pika-refind-btrfs-hooks/usr/bin/gen-pika-refind-btrfs-stanza index d5a2085..c0c439f 100755 --- a/pika-refind-btrfs-hooks/usr/bin/gen-pika-refind-btrfs-stanza +++ b/pika-refind-btrfs-hooks/usr/bin/gen-pika-refind-btrfs-stanza @@ -32,10 +32,10 @@ create_entries() { REFIND_PATH="$1" grep -qxF 'include pika-refind-btrfs.conf' $EFI_PATH/$REFIND_PATH/refind.conf || echo 'include pika-refind-btrfs.conf' >> $EFI_PATH/$REFIND_PATH/refind.conf rm -rfv $EFI_PATH/$REFIND_PATH/pika-refind-btrfs.conf || true - for kernel_version in "$(linux-version list)" + linux-version list | while read kernel_version do echo "Creating refind stanza for: $kernel_version" - echo -e "menuentry \"PikaOS Snapper Stanza - $kernel_version\" {\n icon /$REFIND_PATH/refind-dark/icons/os_pika.png\n volume \"PikaOS\"\n loader /vmlinuz-$kernel_version\n initrd /booster.img-$kernel_version\n options \"root=PARTUUID=$ROOT_PARTUUID $REFIND_CMDLINE_OPTIONS\"\n}" >> "$EFI_PATH/$REFIND_PATH/pika-refind-btrfs.conf" + echo -e "menuentry \"PikaOS Snapper Stanza - $kernel_version\" {\n icon /$REFIND_PATH/refind-dark/icons/os_pika.png\n volume \"PikaOS\"\n loader /vmlinuz-$kernel_version\n initrd /booster.img-$kernel_version\n options \"root=PARTUUID=$ROOT_PARTUUID $REFIND_CMDLINE_OPTIONS\"\n}\n" >> "$EFI_PATH/$REFIND_PATH/pika-refind-btrfs.conf" done }