commit f8d0c33

chld  ·  2025-12-30 17:43:52 +0000 UTC
parent 858cc75
agnostic
3 files changed,  +32, -7
+9, -4
 1@@ -34,18 +34,23 @@ use it for themselves :)
 2 ```sh
 3 git clone https://codeberg.org/chld/mwakatlinux --depth 1
 4 ```
 5-2. run the `setup-distro` command
 6+2. run the `create-mwakat` command
 7    
 8 ```sh
 9-sh ./setup-distro
10+sh ./create-mwakat
11 ```
12+
13+### flags
14+
15+`-noapk`
16+- does not bootstrap the `apk` package manager for your mwakat system
17    
18 3. ~~profit~~ read the lines below
19    
20 ### post-install
21 this is important!
22    
23-the main wrapper`setup-distro` doesnt run any commands 
24+the main wrapper `create-mwakat` doesnt run any commands 
25 that really set up the system for you.
26    
27    
28@@ -59,7 +64,7 @@ you know, the basic stuff.
29 
30 ## distro
31    
32-### oequirements
33+### requirements
34 * a working internet connection
35 * a linux ISO like the gentoo ISO
36 
+16, -2
 1@@ -1,13 +1,27 @@
 2-#!/bin/sh -e
 3+#!/bin/sh -eu
 4 
 5 . ./util/lib.sh
 6 
 7+M_APK=0
 8+
 9+case $1 in
10+	-noapk)
11+		M_APK=1	
12+		log "apk disabled."
13+		war "there will be no package manager in your build of mwakatlinux!"
14+	;;
15+	*);;
16+esac
17+
18 set -x
19 # unmount /mnt
20 sh ./util/kiss-mount $m . 2>/dev/null
21 
22 sh ./setup-rootfs
23-sh ./setup-apk
24+[ $M_APK -eq 1 ] && {
25+	_war ""
26+	sh ./setup-apk
27+}
28 sh ./setup-userland
29 sh ./setup-post
30 
+7, -1
 1@@ -34,7 +34,13 @@ _swt(){
 2 	# usage: _swt toybox ln
 3 }
 4 
 5-_war(){
 6+war(){
 7 	printf "\033[m\033[1;31mWARNING:\033[m\033[1m "
 8 	printf "$1\033[m\n"
 9 }
10+
11+log(){
12+	printf "\033[m\033[1;32m$0\033[m\033[1m "
13+	printf "$1\033[m\n"
14+}
15+}