Browse Source

dracut.sh: if /boot/vmlinuz-$version exists use /boot/ as output dir

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1475565
master
Harald Hoyer 7 years ago
parent
commit
791d801689
  1. 4
      dracut.sh

4
dracut.sh

@ -773,7 +773,9 @@ if ! [[ $outfile ]]; then @@ -773,7 +773,9 @@ if ! [[ $outfile ]]; then
mkdir -p "$efidir/Linux"
outfile="$efidir/Linux/linux-$kernel${MACHINE_ID:+-${MACHINE_ID}}${BUILD_ID:+-${BUILD_ID}}.efi"
else
if [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then
if [[ -e "/boot/vmlinuz-$kernel" ]]; then
outfile="/boot/initramfs-$kernel.img"
elif [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then
outfile="/boot/${MACHINE_ID}/$kernel/initrd"
else
outfile="/boot/initramfs-$kernel.img"

Loading…
Cancel
Save