From 69c5553aeb71647b8303db7540d164cb1b6464cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=91=D0=B0=D0=BD=D1=82=D1=8C=D0=B5=D0=B2?= Date: Wed, 30 Jan 2019 22:30:43 +0300 Subject: [PATCH] Pass `/root` through chroot This PR adds a `/root:root` mapping so that users with UID 0 can run bundles that use `$HOME`. Related to #33 . --- nix-user-chroot/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/nix-user-chroot/main.cpp b/nix-user-chroot/main.cpp index 2f3ba7d..76f2d41 100644 --- a/nix-user-chroot/main.cpp +++ b/nix-user-chroot/main.cpp @@ -120,6 +120,7 @@ int main(int argc, char *argv[]) { x("etc"); x("usr"); x("home"); + x("root"); #undef x int opt;