We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 527fdfa commit d634314Copy full SHA for d634314
lsinitrd.sh
@@ -133,9 +133,11 @@ else
133
image="/lib/modules/${KERNEL_VERSION}/initrd"
134
elif [[ -f /boot/initramfs-${KERNEL_VERSION}.img ]]; then
135
image="/boot/initramfs-${KERNEL_VERSION}.img"
136
- elif mountpoint -q /efi; then
+ elif [[ $MACHINE_ID ]] \
137
+ && mountpoint -q /efi; then
138
image="/efi/${MACHINE_ID}/${KERNEL_VERSION}/initrd"
- elif mountpoint -q /boot/efi; then
139
140
+ && mountpoint -q /boot/efi; then
141
image="/boot/efi/${MACHINE_ID}/${KERNEL_VERSION}/initrd"
142
else
143
image=""
0 commit comments