From ecfa846be94ce97c3a6dee5f7d408773ba0990da Mon Sep 17 00:00:00 2001 From: Alexander Hill Date: Thu, 17 Apr 2025 22:14:16 -0400 Subject: [PATCH] Moved passwd and group to build-chroot --- build-chroot.sh | 4 ++++ configure-image.sh | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build-chroot.sh b/build-chroot.sh index 5331048..1bb3750 100755 --- a/build-chroot.sh +++ b/build-chroot.sh @@ -491,6 +491,10 @@ sed -i "s/^-e//" local/capnames.h make -j $THREADS install cd .. +# User/Group Generation +echo "root:x:0:0::/home/root:/bin/zsh" > /etc/passwd +echo "root:x:0:root" > /etc/group + # Finally, make the image bootable. cp /usr/share/limine/BOOTX64.EFI /boot/EFI/BOOT/ diff --git a/configure-image.sh b/configure-image.sh index 0f990cf..de88a21 100644 --- a/configure-image.sh +++ b/configure-image.sh @@ -1,9 +1,5 @@ #!/bin/sh -e -# User/Group Generation -echo "root:x:0:0::/home/root:/bin/zsh" > /etc/passwd -echo "root:x:0:root" > /etc/group - # fstab Generation # TODO: Is the dump column still used today? ~ahill echo "/dev/vda2 / xfs defaults 1 1" > /etc/fstab