[initcpiocfg] bootsplash: add hook for each theme
This commit is contained in:
parent
830cc1b4d2
commit
7477a4da8e
@ -139,8 +139,9 @@ def modify_mkinitcpio_conf(partitions, root_mount_point):
|
|||||||
# Detect bootsplash theme and enable hook
|
# Detect bootsplash theme and enable hook
|
||||||
bootsplash_folder = os.path.join(root_mount_point, "usr/lib/firmware/bootsplash-themes")
|
bootsplash_folder = os.path.join(root_mount_point, "usr/lib/firmware/bootsplash-themes")
|
||||||
if os.path.exists(bootsplash_folder):
|
if os.path.exists(bootsplash_folder):
|
||||||
bootsplash_theme = os.listdir(bootsplash_folder)
|
bootsplash_themes = os.listdir(bootsplash_folder)
|
||||||
hooks.append("bootsplash-{!s}".format(bootsplash_theme))
|
for bootsplash_theme in bootsplash_themes:
|
||||||
|
hooks.append("bootsplash-{!s}".format(bootsplash_theme))
|
||||||
|
|
||||||
for partition in partitions:
|
for partition in partitions:
|
||||||
if partition["fs"] == "linuxswap":
|
if partition["fs"] == "linuxswap":
|
||||||
|
Loading…
Reference in New Issue
Block a user