logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git
commit: cd05642cfadab04b38ddc5dd8f52f94da9cff6c4
parent da1dba5953c6d9f191a4b23af4308ba73e14f08e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  8 May 2024 05:38:34 +0200

make-root.sh: Add /etc/passwd with an entry for root

Diffstat:

Mmake-root.sh2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/make-root.sh b/make-root.sh @@ -103,6 +103,8 @@ ln -s usr/bin bin ln -s usr/bin sbin mkdir -m 777 tmp +echo 'root:x:0:0:root:/root:/bin/sh' > etc/passwd + for i in fd stderr stdin stdout; do ln -fs proc/self/$i dev/$i done