summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-01-02 14:53:47 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-01-02 14:53:47 +0100
commit4f312ba07bdd4816629b20f84ba8c8946cc54c61 (patch)
treece5034cf4c9e2ac0f10b0263f7758b4f5897d861 /src
parentukify: Handle directories in path_is_readable() (diff)
downloadsystemd-4f312ba07bdd4816629b20f84ba8c8946cc54c61.tar.xz
systemd-4f312ba07bdd4816629b20f84ba8c8946cc54c61.zip
ukify: Require specifying --tools for each tools directory
Instead of consuming N arguments as tools directories, let's always only consume one argument per specification of --tools. This avoids issues where the linux image and initrd are interpreted as tools directories.
Diffstat (limited to '')
-rwxr-xr-xsrc/ukify/ukify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py
index e1ee7106c1..2493de2a40 100755
--- a/src/ukify/ukify.py
+++ b/src/ukify/ukify.py
@@ -687,7 +687,7 @@ usage: ukify [options…] linux initrd…
p.add_argument('--tools',
type=pathlib.Path,
- nargs='+',
+ action='append',
help='Directories to search for tools (systemd-measure, llvm-objcopy, ...)')
p.add_argument('--output', '-o',