Update pika-refind-btrfs-hooks/usr/bin/gen-pika-refind-btrfs-stanza
This commit is contained in:
parent
99cb22f74d
commit
ade555c339
@ -32,10 +32,10 @@ create_entries() {
|
|||||||
REFIND_PATH="$1"
|
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
|
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
|
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
|
do
|
||||||
echo "Creating refind stanza for: $kernel_version"
|
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
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user