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 }