fixup: pass args to sh -l, in root' shell, to allow 'ssh nix-store -r'

This commit is contained in:
Graham Christensen 2018-06-04 11:42:34 -04:00
parent f5757f5cb8
commit f297d37c50
No known key found for this signature in database
GPG Key ID: ACA1C1D120C83D5C

View File

@ -109,7 +109,7 @@ let
file_passwd = let
wrapped_shell = writeScript "busybox-sh-wrapper" ''
#!${pkgsLinux.busybox}/bin/sh
exec ${pkgsLinux.busybox}/bin/sh -l
exec ${pkgsLinux.busybox}/bin/sh -l "$@"
'';
in writeText "passwd" ''
root:x:0:0:System administrator:/root:${wrapped_shell}