summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-08-12 11:01:36 -0400
committerChris Lumens <clumens@redhat.com>2008-08-12 11:01:36 -0400
commit4df7a6516df0f06f8a083a19943ec079d97bfdf2 (patch)
tree9b3eedbe82fef56533feb43893c6bde4bd11de59 /scripts
parentb71c4fd85bd32d9a35660dd06fff9554145968da (diff)
downloadanaconda-4df7a6516df0f06f8a083a19943ec079d97bfdf2.tar.gz
anaconda-4df7a6516df0f06f8a083a19943ec079d97bfdf2.tar.xz
anaconda-4df7a6516df0f06f8a083a19943ec079d97bfdf2.zip
Catch the first non-generic-logo package that provides system-logos.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mk-images.efi7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/mk-images.efi b/scripts/mk-images.efi
index b891b9c48..23038eb35 100755
--- a/scripts/mk-images.efi
+++ b/scripts/mk-images.efi
@@ -154,7 +154,12 @@ prepareEfiTree() {
mv $MBD_BOOTTREE_TMP/EFI/boot/grub.efi $MBD_BOOTTREE_TMP/EFI/boot/boot${efiarch}.efi
mv $MBD_BOOTTREE_TMP/EFI/boot/grub.conf $MBD_BOOTTREE_TMP/EFI/boot/boot${efiarch}.conf
- artpkg=$(repoquery --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}" -c $yumconf system-logos)
+ artpkg=$(repoquery --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}" --whatprovides system-logos | grep -v generic-logos | head -1)
+
+ if [ -z "$artpkg" ]; then
+ argpkg="generic-logos"
+ fi
+
yumdownloader -c $yumconf $artpkg
rpm2cpio $artpkg.rpm | (cd $KERNELROOT; cpio --quiet -iumd)
cp $KERNELROOT/boot/grub/splash.xpm.gz $MBD_BOOTTREE_TMP/EFI/boot/splash.xpm.gz