zandra

zandra linux main repo
git clone git://zandra.org/zandra
Log | Files | Refs | Submodules | README | LICENSE

commit 26a2d251603cd8b6cefde6e3a9d57a57539d790d
parent cd2457cee999a6a91a86da42aaef4f1ad76b437e
Author: darklands <darklands@zandra.xyz>
Date:   Sat, 25 Apr 2020 02:32:49 -0400

It boots now

Diffstat:
MREADME | 16+++++++++++-----
Mmkfile | 2+-
Mstuff/create-bootable | 19++++++++-----------
3 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/README b/README @@ -11,12 +11,18 @@ To compile the base packages, edit config.mk then do the following: export mkbuild=$(pwd)/mkbuild # in base directory cd ports && mk -Currently the base packages are in the process of being updated to -their current versions (before Zandra they were last updated in 2015). -Note that most packages on there, with the exception of a few, are -outdated and the URLs may not even work. +Currently we are in the process of updating packages to their current +versions (before Zandra they were last updated in 2015). Note that +most packages on there, with the exception of a few, are outdated and +the URLs may not even work. Installing ---------- -We haven't gotten to that point yet. +You can install to a root using the following: + + export ROOT="desired root" + mk install + +A bootable image can be made using the "bootable" target. IT ASSUMES +/dev/loop0 IS FREE SO IF IT'S NOT, DON'T RUN THE SCRIPT!! diff --git a/mkfile b/mkfile @@ -18,7 +18,7 @@ init:QV: git submodule update --remote bootable:V: - stuff/create-bootable "$ROOT" morpheus-$arch-$version.img + stuff/create-bootable "$ROOT" zandra-$arch-$version.img install:QV: cd ports diff --git a/stuff/create-bootable b/stuff/create-bootable @@ -19,37 +19,34 @@ set -e -x root=$1 img=$2 -mnt="/mnt/morpheus" +mnt="/mnt/zandra" fallocate -l 2G $img || dd if=/dev/zero of=$img bs=512M count=4 ( cat << EOF o n -p -1 + + a -1 w EOF ) | fdisk $img -lodev=$(losetup -f) -losetup "$lodev" "$img" -partition="$lodev"p1 -mkfs.ext4 -L MORPHEUS $partition +losetup -Pf $img +partition=/dev/loop0p1 +mkfs.ext4 -L ZANDRA $partition mkdir -p "$mnt" mount $partition "$mnt" rmdir "$mnt/lost+found" fakeroot cp -arP "$root"/* "$mnt" extlinux --install "$mnt/boot" - -cat stuff/mbr.bin > $lodev +cat stuff/mbr.bin > /dev/loop0 sync umount "$mnt" sleep 3 -losetup -d $lodev +losetup -d /dev/loop0