From 16199521eaaf5d31952c19e44bcca205959df57f Mon Sep 17 00:00:00 2001 From: Utku Demir Date: Sun, 21 Jun 2020 12:23:55 +1200 Subject: [PATCH] stream_layered_image: Always set uid and gid to root --- pkgs/build-support/docker/stream_layered_image.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/build-support/docker/stream_layered_image.py b/pkgs/build-support/docker/stream_layered_image.py index 5d251e8bfb05..a9de10f9efaa 100644 --- a/pkgs/build-support/docker/stream_layered_image.py +++ b/pkgs/build-support/docker/stream_layered_image.py @@ -67,6 +67,10 @@ def archive_paths_to(obj, paths, mtime, add_nix, filter=None): def apply_filters(ti): ti.mtime = mtime + ti.uid = 0 + ti.gid = 0 + ti.uname = "root" + ti.gname = "root" return filter(ti) def dir(path):