lsinitrd.sh: fix for default initrd not found, but image given
parent
8d28614e4f
commit
727e68d0b5
|
|
@ -54,8 +54,7 @@ if [[ "$1" ]]; then
|
|||
usage
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
else
|
||||
[[ -f /etc/machine-id ]] && read MACHINE_ID < /etc/machine-id
|
||||
|
||||
if [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then
|
||||
|
|
@ -63,6 +62,8 @@ if [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_
|
|||
else
|
||||
image="/boot/initramfs-${KERNEL_VERSION}.img}"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if ! [[ -f "$image" ]]; then
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue