--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -211,5 +211,19 @@ - print_info 1 "initrd: copying bootsplash" - /sbin/splash -s -f /etc/bootsplash/gentoo/config/bootsplash-800x600.cfg >> ${TEMP}/initrd-loop || gen_die "could not copy 800x600 bootsplash" - /sbin/splash -s -f /etc/bootsplash/gentoo/config/bootsplash-1024x768.cfg >> ${TEMP}/initrd-loop || gen_die "could not copy 1024x768 bootsplash" - /sbin/splash -s -f /etc/bootsplash/gentoo/config/bootsplash-1280x1024.cfg >> ${TEMP}/initrd-loop || gen_die "could not copy 1280x1024 bootsplash" - /sbin/splash -s -f /etc/bootsplash/gentoo/config/bootsplash-1600x1200.cfg >> ${TEMP}/initrd-loop || gen_die "could not copy 1600x1200 bootsplash" --- + source /etc/conf.d/bootsplash.conf + + if [ -z "${BOOTSPLASH_THEME}" ] + then + BOOTSPLASH_THEME=default + fi + + print_info 1 "initrd: copying bootsplash theme:${BOOTSPLASH_THEME}" + + for res in 800x600 1024x768 1280x1024 1600x1200 + do + if [ -f "/etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-${res}.cfg" ] + then + /sbin/splash -s -f /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-${res}.cfg >> ${TEMP}/initrd-loop || gen_die "could not copy ${res} bootsplash" + print_info 1 "splash: Copied resolution ${res}" + else + print_info 1 "splash: Cannot find splash for ${res} continuing" + fi + done