diff --git a/man/ukify.xml b/man/ukify.xml index a9034bc5111..bf6f3285364 100644 --- a/man/ukify.xml +++ b/man/ukify.xml @@ -167,7 +167,7 @@ If no config file is provided via the option , ukify will try to look for a default configuration file in the following paths in this - order: /run/systemd/ukify.conf, /etc/systemd/ukify.conf, + order: /etc/systemd/ukify.conf, /run/systemd/ukify.conf, /usr/local/lib/systemd/ukify.conf, and /usr/lib/systemd/ukify.conf, and then load the first one found. ukify will proceed normally if no configuration file is specified and no default one is found. diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 50d921b7a80..a21fe484373 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -68,7 +68,7 @@ EFI_ARCHES: list[str] = sum(EFI_ARCH_MAP.values(), []) # Default configuration directories and file name. # When the user does not specify one, the directories are searched in this order and the first file found is used. -DEFAULT_CONFIG_DIRS = ['/run/systemd', '/etc/systemd', '/usr/local/lib/systemd', '/usr/lib/systemd'] +DEFAULT_CONFIG_DIRS = ['/etc/systemd', '/run/systemd', '/usr/local/lib/systemd', '/usr/lib/systemd'] DEFAULT_CONFIG_FILE = 'ukify.conf' class Style: