toy linux distro

rain1 3dcfd4f678 0 %!s(int64=8) %!d(string=hai) anos
repack 3dcfd4f678 0 %!s(int64=8) %!d(string=hai) anos
LICENSE d30aeef0d9 Init commit %!s(int64=8) %!d(string=hai) anos
README.md 93131e40bb 0 %!s(int64=8) %!d(string=hai) anos
dl.sh 069bb237d0 0 %!s(int64=8) %!d(string=hai) anos
mk.sh 3dcfd4f678 0 %!s(int64=8) %!d(string=hai) anos
pkg.sh cac000dbd8 0 %!s(int64=8) %!d(string=hai) anos
repack_all.sh 3dcfd4f678 0 %!s(int64=8) %!d(string=hai) anos
trinity.png cac000dbd8 0 %!s(int64=8) %!d(string=hai) anos

README.md

trinity

toy linux distro based on morpheus

setup

Please use a chroot when building this in case of bugs in the scripts.

dependencies

gcc-toolchain gcc:lib coreutils which binutils make wget git tar gzip qemu e2fsprogs util-linux sed grep bash ld-wrapper gawk

binutils needs flex and bison.

instructions

To download the source code and hash it into dump/

./dl.sh

To compile and install the base system into root/

./mk.sh

To create a qemu image

$ qemu-img create -f raw os.img 1G
$ mkfs.ext4 os.img
$ mkdir osroot
# mount -t ext4 -o loop os.img osroot
# cp -r root/* osroot/
# umount osroot

To boot it (you need a linux kernel bzImage too),

qemu-system-x86_64 -enable-kvm -kernel bzImage -hda os.img -append "root=/dev/sda vga=788"