From 4c89e9aee6ae0610f85add0344bb68e070625536 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Mon, 26 Sep 2022 21:02:10 +0100 Subject: [PATCH] add passwd and group in environment.etc --- make-image.nix | 1 - modules/base.nix | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/make-image.nix b/make-image.nix index 17e2c9f0..833c6e28 100644 --- a/make-image.nix +++ b/make-image.nix @@ -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" diff --git a/modules/base.nix b/modules/base.nix index 34eae736..1db246cd 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -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"; }; }; }; };