Re: [PATCH] grubby: Add --dracut cmdline argument to use dracut for --mkinitrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/09/2009 11:12 AM, Hans de Goede wrote:
> @@ -432,17 +437,24 @@ fi
>  
>  # set the initrd file based on arch; ia64 is the only currently known oddball
>  if [ -z "$initrdfile" ]; then
> -    if [ `uname -m` = "ia64" ]; then
> -	initrdfile="/boot/efi/EFI/redhat/initrd-$version.img"
> +    if [ -n "$dracut" ]; then
> +        if [ `uname -m` = "ia64" ]; then
> +            initrdfile="/boot/efi/EFI/redhat/dracut-$version.img"
> +        else
> +            initrdfile="/boot/dracut-$version.img"
> +        fi
>      else
> -	initrdfile="/boot/initrd-$version.img"
> +        if [ `uname -m` = "ia64" ]; then
> +            initrdfile="/boot/efi/EFI/redhat/initrd-$version.img"
> +        else
> +            initrdfile="/boot/initrd-$version.img"
> +        fi
>      fi
> -
>  fi

I'd much rather see this as:

INITRD_NAME_PREFIX="initrd-"
if [ -n "$dracut" ]; then
  INITRD_NAME_PREFIX="dracut-"
fi
if [ `uname -m` = "ia64" ]; then
  initrdfile="/boot/efi/EFI/redhat/$INITRD_NAME_PREFIX-$version.img"
...

Where's the other patch you said you sent?

-- 
        Peter

Power corrupts.  Absolute power is kind of neat.
		-- John Lehman, Secretary of the Navy, 1981-1987

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux