add passwd and group in environment.etc

This commit is contained in:
Daniel Barlow 2022-09-26 21:02:10 +01:00
parent a427b9da5e
commit 4c89e9aee6
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,6 @@ let
/bin/init s 0755 0 0 ${s6-init-bin}/bin/init
/bin/sh s 0755 0 0 ${busybox}/bin/sh
/bin/busybox s 0755 0 0 ${busybox}/bin/busybox
/etc/passwd f 0644 0 0 echo "root::0:0:root:/:/bin/sh"
'';
config-pseudofiles = pseudofile.write "config.etc"

View file

@ -37,7 +37,8 @@ in {
PATH=${lib.makeBinPath (with pkgs; [ s6-init-bin busybox execline s6-linux-init s6-rc])}
export PATH
'');
passwd = { file = "root::0:0:root:/:/bin/sh\n"; };
group = { file = "root::0:\n"; };
};
};
};