Browse Source

fix: add a missing efi support

master
Jóhann B. Guðmundsson 4 years ago
parent
commit
093bc9b5cf
  1. 6
      lsinitrd.sh

6
lsinitrd.sh

@ -97,7 +97,11 @@ if [[ $1 ]]; then
else else
[[ -f /etc/machine-id ]] && read MACHINE_ID < /etc/machine-id [[ -f /etc/machine-id ]] && read MACHINE_ID < /etc/machine-id


if [[ -d /boot/loader/entries || -L /boot/loader/entries ]] \ if [[ -d /efi/loader/entries || -L /efi/loader/entries ]] \
&& [[ $MACHINE_ID ]] \
&& [[ -d /efi/${MACHINE_ID} || -L /efi/${MACHINE_ID} ]] ; then
image="/efi/${MACHINE_ID}/${KERNEL_VERSION}/initrd"
elif [[ -d /boot/loader/entries || -L /boot/loader/entries ]] \
&& [[ $MACHINE_ID ]] \ && [[ $MACHINE_ID ]] \
&& [[ -d /boot/${MACHINE_ID} || -L /boot/${MACHINE_ID} ]] ; then && [[ -d /boot/${MACHINE_ID} || -L /boot/${MACHINE_ID} ]] ; then
image="/boot/${MACHINE_ID}/${KERNEL_VERSION}/initrd" image="/boot/${MACHINE_ID}/${KERNEL_VERSION}/initrd"

Loading…
Cancel
Save