mirror of
https://github.com/nix-community/linuxkit-nix.git
synced 2024-09-11 11:55:24 +03:00
fixup: pass args to sh -l, in root' shell, to allow 'ssh nix-store -r'
This commit is contained in:
parent
f5757f5cb8
commit
f297d37c50
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user