From 20b10574d7e154a98fa2fbd7828a55f73647ca80 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 13 Dec 2022 14:11:02 +0100 Subject: [PATCH] quadlet: Add --user option Normally quadlet picks up whether to behave like a user or system instance based on the binary name, but for the tests we want the ability to pass `--user` to modify this using a single binary. Signed-off-by: Alexander Larsson --- cmd/quadlet/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/quadlet/main.go b/cmd/quadlet/main.go index 7adeeb1500..58869e5baa 100644 --- a/cmd/quadlet/main.go +++ b/cmd/quadlet/main.go @@ -358,4 +358,5 @@ func main() { func init() { flag.BoolVar(&verboseFlag, "v", false, "Print debug information") flag.BoolVar(&noKmsgFlag, "no-kmsg-log", false, "Don't log to kmsg") + flag.BoolVar(&isUser, "user", false, "Run as systemd user") }