summaryrefslogtreecommitdiff
path: root/src/firstboot
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-14 11:39:48 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-15 08:50:45 +0100
commit614b022c76e72a3d20ff48f2bc58ca7c3f86b84f (patch)
tree81660985be78f2523f61d0a4448c4a7fb400db8c /src/firstboot
parent923e2122d09ba577a933b0fb5c7d52cbfa05b080 (diff)
downloadsystemd-614b022c76e72a3d20ff48f2bc58ca7c3f86b84f.tar.gz
Move and rename parse_path_argument() function
This fits better in shared/, and the new parse-argument.c file is a good home for it.
Diffstat (limited to 'src/firstboot')
-rw-r--r--src/firstboot/firstboot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index 522d0ff1f0..40f0de28c2 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -24,6 +24,7 @@
#include "mkdir.h"
#include "mount-util.h"
#include "os-util.h"
+#include "parse-argument.h"
#include "parse-util.h"
#include "path-util.h"
#include "pretty-print.h"
@@ -1046,13 +1047,13 @@ static int parse_argv(int argc, char *argv[]) {
return version();
case ARG_ROOT:
- r = parse_path_argument_and_warn(optarg, true, &arg_root);
+ r = parse_path_argument(optarg, true, &arg_root);
if (r < 0)
return r;
break;
case ARG_IMAGE:
- r = parse_path_argument_and_warn(optarg, false, &arg_image);
+ r = parse_path_argument(optarg, false, &arg_image);
if (r < 0)
return r;
break;