diff --git a/src/modules/initcpiocfg/main.py b/src/modules/initcpiocfg/main.py index 6147a508a..1a46c630d 100644 --- a/src/modules/initcpiocfg/main.py +++ b/src/modules/initcpiocfg/main.py @@ -4,7 +4,7 @@ # === This file is part of Calamares - === # # Copyright 2014, Rohan Garg -# Copyright 2015,2019, Philip Müller +# Copyright 2015,2019,2020, Philip Müller # Copyright 2017, Alf Gaida # Copyright 2019, Adriaan de Groot # @@ -136,6 +136,12 @@ def modify_mkinitcpio_conf(partitions, root_mount_point): if detect_plymouth(): hooks.append("plymouth") + # Detect bootsplash theme and enable hook + bootsplash_folder = os.path.join(root_mount_point, "usr/lib/firmware/bootsplash-themes") + if os.path.exists(bootsplash_folder): + bootsplash_theme = os.listdir(bootsplash_folder) + hooks.append("bootsplash-{!s}".format(bootsplash_theme)) + for partition in partitions: if partition["fs"] == "linuxswap": swap_uuid = partition["uuid"]