Mirror GRUB's splash screen functionality for non-grub booloaders
This commit is contained in:
parent
1645874973
commit
51d6dd23ea
@ -127,7 +127,6 @@ def is_zfs_root(partition):
|
|||||||
|
|
||||||
def get_kernel_params(uuid):
|
def get_kernel_params(uuid):
|
||||||
kernel_params = libcalamares.job.configuration.get("kernelParams", ["quiet"])
|
kernel_params = libcalamares.job.configuration.get("kernelParams", ["quiet"])
|
||||||
kernel_params.append("rw")
|
|
||||||
|
|
||||||
partitions = libcalamares.globalstorage.value("partitions")
|
partitions = libcalamares.globalstorage.value("partitions")
|
||||||
swap_uuid = ""
|
swap_uuid = ""
|
||||||
@ -136,11 +135,17 @@ def get_kernel_params(uuid):
|
|||||||
|
|
||||||
cryptdevice_params = []
|
cryptdevice_params = []
|
||||||
|
|
||||||
|
has_plymouth = libcalamares.utils.target_env_call(["sh", "-c", "which plymouth"]) == 0
|
||||||
has_dracut = libcalamares.utils.target_env_call(["sh", "-c", "which dracut"]) == 0
|
has_dracut = libcalamares.utils.target_env_call(["sh", "-c", "which dracut"]) == 0
|
||||||
uses_systemd_hook = libcalamares.utils.target_env_call(["sh", "-c",
|
uses_systemd_hook = libcalamares.utils.target_env_call(["sh", "-c",
|
||||||
"grep -q \"^HOOKS.*systemd\" /etc/mkinitcpio.conf"]) == 0
|
"grep -q \"^HOOKS.*systemd\" /etc/mkinitcpio.conf"]) == 0
|
||||||
use_systemd_naming = has_dracut or uses_systemd_hook
|
use_systemd_naming = has_dracut or uses_systemd_hook
|
||||||
|
|
||||||
|
# If plymouth installed, add splash screen parameter early
|
||||||
|
if has_plymouth:
|
||||||
|
kernel_params.append("splash")
|
||||||
|
|
||||||
|
kernel_params.append("rw")
|
||||||
|
|
||||||
# Take over swap settings:
|
# Take over swap settings:
|
||||||
# - unencrypted swap partition sets swap_uuid
|
# - unencrypted swap partition sets swap_uuid
|
||||||
|
Loading…
Reference in New Issue
Block a user