From 7425d9254ddbce7a8764a7e1cf8a6f2d30b812a9 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Sat, 5 Jun 2021 15:53:31 -0400 Subject: nixos/anbox: use `--daemon` to squash warning As noted in https://github.com/NixOS/nixpkgs/pull/102341 this is not actually running as a forked process. It only tells the process that it is running "as a daemon, so shut the warning up". See `daemon_` here - https://github.com/anbox/anbox/blob/9de4e87cdd05135e1c71e6eadb68bf82719cebdf/src/anbox/cmds/container_manager.cpp#L38-L79 It is **strictly** used to hide that message. Co-authored-by: Matt Votava --- nixos/modules/virtualisation/anbox.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nixos/modules/virtualisation') diff --git a/nixos/modules/virtualisation/anbox.nix b/nixos/modules/virtualisation/anbox.nix index dd4a49413f7c..523d9a9576ef 100644 --- a/nixos/modules/virtualisation/anbox.nix +++ b/nixos/modules/virtualisation/anbox.nix @@ -166,7 +166,8 @@ in --container-network-gateway=${cfg.ipv4.gateway.address} \ --container-network-dns-servers=${cfg.ipv4.dns} \ --use-rootfs-overlay \ - --privileged + --privileged \ + --daemon ''; }; }; -- cgit 1.4.1