From 916738d7ed35cc367157bea96f25c1a253cdb5ec Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Wed, 10 Jun 2026 21:44:57 +1200 Subject: No etc/shadow, just use no root passwd in etc/passwd --- nix/rootfs.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nix/rootfs.nix') diff --git a/nix/rootfs.nix b/nix/rootfs.nix index 75be0d8..c5769e6 100644 --- a/nix/rootfs.nix +++ b/nix/rootfs.nix @@ -52,9 +52,8 @@ stdenv.mkDerivation { echo "proc /proc proc defaults 0 0" > rootfs/etc/fstab echo "sysfs /sys sysfs defaults 0 0" >> rootfs/etc/fstab echo "devtmpfs /dev devtmpfs defaults 0 0" >> rootfs/etc/fstab - echo "root:x:0:0:root:/root:/bin/sh" > rootfs/etc/passwd + echo "root::0:0:root:/root:/bin/sh" > rootfs/etc/passwd echo "root:x:0:" > rootfs/etc/group - echo "root::0:0:root:/root:/bin/sh" > rootfs/etc/shadow echo "yerba-live" > rootfs/etc/hostname # Basic files setup end -- cgit v1.2.3