summaryrefslogtreecommitdiffstats
path: root/src/ukify
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-10-05 17:01:21 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-10-09 20:36:57 +0200
commit224aa31f4a0499bfacab07f22d2114fca555da29 (patch)
tree630e4b9c2e80d65cb9e438e54180fffaebfc8b7d /src/ukify
parentukify: Introduce resolve_at_path() (diff)
downloadsystemd-224aa31f4a0499bfacab07f22d2114fca555da29.tar.xz
systemd-224aa31f4a0499bfacab07f22d2114fca555da29.zip
ukify: Read .profile from path starting with @
Diffstat (limited to 'src/ukify')
-rwxr-xr-xsrc/ukify/ukify.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py
index 5f1b2c3e8c..2344282795 100755
--- a/src/ukify/ukify.py
+++ b/src/ukify/ukify.py
@@ -1898,6 +1898,8 @@ def finalize_options(opts: argparse.Namespace) -> None:
'--sign-kernel requires either --secureboot-private-key= and --secureboot-certificate= (for sbsign) or --secureboot-certificate-name= (for pesign) to be specified' # noqa: E501
)
+ opts.profile = resolve_at_path(opts.profile)
+
if opts.join_profiles and not opts.profile:
# If any additional profiles are added, we need a base profile as well so add one if
# one wasn't explicitly provided