diff options
| author | Alexander Hill <ahill@breadpudding.dev> | 2025-04-19 22:01:41 -0400 |
|---|---|---|
| committer | Alexander Hill <ahill@breadpudding.dev> | 2025-04-19 22:01:41 -0400 |
| commit | fd15389adb86a15a56d3bd79b1ec76c2659cd70a (patch) | |
| tree | 3c8b0d565e240e4ab9b5533d1ebc7d7850f3b9ef /build-chroot.sh | |
| parent | 4eee072aa6ad9533da6f4f55c5388389051288f9 (diff) | |
Built shadow and started agetty
Diffstat (limited to 'build-chroot.sh')
| -rwxr-xr-x | build-chroot.sh | 68 |
1 files changed, 67 insertions, 1 deletions
diff --git a/build-chroot.sh b/build-chroot.sh index 3e3dc6f..cd2fdd4 100755 --- a/build-chroot.sh +++ b/build-chroot.sh @@ -522,11 +522,77 @@ make -j $THREADS make -j $THREADS install cd .. -# User/Group Generation +# libmd Build +tar xf ../sources/libmd-*.tar* +cd libmd-*/ +./configure \ + --disable-static \ + --exec-prefix="" \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --prefix=/usr \ + --sysconfdir=/etc +make -j $THREADS +make -j $THREADS install +cd .. + +# libbsd Build +tar xf ../sources/libbsd-*.tar* +cd libbsd-*/ +./configure \ + --disable-static \ + --enable-year2038 \ + --exec-prefix="" \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --prefix=/usr \ + --sysconfdir=/etc +make -j $THREADS +make -j $THREADS install +cd .. + +# Shadow Build +tar xf ../sources/shadow-*.tar* +cd shadow-*/ +./configure \ + --disable-nls \ + --disable-static \ + --exec-prefix="" \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --prefix=/usr \ + --sysconfdir=/etc +make -j $THREADS +make -j $THREADS install +cd .. + +# nano Build +tar xf ../sources/nano-*.tar* +cd nano-*/ +./configure \ + --disable-nls \ + --enable-utf8 \ + --enable-year2038 \ + --exec-prefix="" \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --prefix=/usr \ + --sysconfdir=/etc +make -j $THREADS +make -j $THREADS install +cd .. + +# Basic Configuration echo "root:x:0:0::/home/root:/bin/zsh" > /etc/passwd echo "root:x:0:root" > /etc/group +# NOTE: Password here is "speakfriendandenter" ~ahill +echo "root:\$6\$mainemaple\$8BwdyloMf5/n5a/n0CqCQ2CKy/OwuNYH/ZEtlByobs.pm9QoMRUu6CbOfyycILI.MQCwd4aXqN58cXpg9mtwy/:20197:0:99999:30:::" > /etc/shadow +echo "maple" > /etc/hostname # Finally, make the image bootable. cp /usr/share/limine/BOOTX64.EFI /boot/EFI/BOOT/ +ln -s agetty /etc/init.d/agetty.tty1 +cp /etc/conf.d/agetty /etc/conf.d/agetty.tty1 +rc-update add agetty.tty1 default cd .. |
