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 .
commit69c5553aeb71647b8303db7540d164cb1b6464cd
authorАлександр Бантьев <balsoft@yandex.ru>
dateWed 30 Jan 2019, 22:30 (8 years ago)
parent113d8c6
nix-user-chroot/main.cpp+1
@@ -120,6 +120,7 @@ int main(int argc, char *argv[]) {
120120 x("etc");
121121 x("usr");
122122 x("home");
123+ x("root");
123124#undef x
124125
125126 int opt;