From b47094191145277319b81feb6d1a7f0e3e20b906 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sun, 13 Oct 2024 12:09:38 +0900 Subject: shim: get rid of insane launch condition Signed-off-by: Ophestra Umiker --- internal/app/launch.machinectl.go | 4 ++-- internal/app/launch.sudo.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/app') diff --git a/internal/app/launch.machinectl.go b/internal/app/launch.machinectl.go index 59efd553..9fb9ea0b 100644 --- a/internal/app/launch.machinectl.go +++ b/internal/app/launch.machinectl.go @@ -57,8 +57,8 @@ func (a *app) commandBuilderMachineCtl(shimEnv string) (args []string) { } } - // both license and version flags need to be set to activate shim path - innerCommand.WriteString("exec " + a.seal.sys.executable + " -V -license") + // launch fortify as shim + innerCommand.WriteString("exec " + a.seal.sys.executable + " shim") // append inner command args = append(args, innerCommand.String()) diff --git a/internal/app/launch.sudo.go b/internal/app/launch.sudo.go index 777cb2a7..3e364ace 100644 --- a/internal/app/launch.sudo.go +++ b/internal/app/launch.sudo.go @@ -26,7 +26,7 @@ func (a *app) commandBuilderSudo(shimEnv string) (args []string) { args = append(args, shimEnv) // -- $@ - args = append(args, "--", a.seal.sys.executable, "-V", "--license") // magic for shim.Try() + args = append(args, "--", a.seal.sys.executable, "shim") return } -- cgit v1.3.1