]> git.ipfire.org Git - thirdparty/plymouth.git/commit
Make simpledrm selection configurable from config file
authorHans de Goede <hdegoede@redhat.com>
Mon, 17 Feb 2025 14:47:11 +0000 (15:47 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 10 Mar 2025 10:45:27 +0000 (11:45 +0100)
commite7fc6cb5c43daa03594b916118085d96374128a9
tree4624b9eddc6836d6622fb5057966508b7c64537e
parent6620904dff314939e6a4975dd5a334f50f780d42
Make simpledrm selection configurable from config file

Move the handling of the "plymouth.use-simpledrm" commandline argument from
ply-device-manager to main.c, and allow specifying its default value in
the "[Daemon]" section of the config-file using a new UseSimpledrm keyword.

Extend the "plymouth.use-simpledrm" handling to also accept a value e.g.
"plymouth.use-simpledrm=0" to allow overriding a "UseSimpledrm=1" in
the configfile.

And pass the use-simpledrm value to ply_device_manager_new () through a new
PLY_DEVICE_MANAGER_FLAGS_USE_SIMPLEDRM flag.

This also moves the kernel commandline handling to src/main.c grouping
it together with most of the other commandline handling.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/libply-splash-core/ply-device-manager.c
src/libply-splash-core/ply-device-manager.h
src/main.c