blob: 2fd2fa23ee055f3c50d3ca9d1ffe87eac8841f51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#!/usr/bin/env bash
# Say Hello to Vasile, a modular script to build Kogaion/Argent Linux packages && ISO images using a clean squashfs + overlayfs chroot
# Main author : Ghiunhan Mamut (aka V3n3RiX) @ RogentOS Development Group
# Dependencies : kernel built with squashfs + overlayfs + loopback support && sys-fs/grub:2 && sys-fs/squashfs-tools && dev-libs/libisoburn && sys-fs/mtools
#
# Import our variables and functions
source /usr/lib/kvasile/libkvasile
# Vasile need root privileges and a proper kernel to run
# Also, running it in live mode is a really bad idea
checkroot
checkiflive
kernelconfig
case $1 in
--makepkg)
source /usr/share/kvasile/makepkg
;;
--makeiso)
source /usr/share/kvasile/makeiso
;;
--resetmode)
source /usr/share/kvasile/modereset
;;
--usermode)
source /usr/share/kvasile/modereset
source /usr/share/kvasile/usermodeset
;;
--devmode)
source /usr/share/kvasile/modereset
source /usr/share/kvasile/devmodeset
;;
--help)
echo -e ""
echo -e "Usage: kvasile [options]"
echo -e ""
echo -e "Options:"
echo -e "--makepkg : build package/target in a clean squashed core"
echo -e "--makeiso : build iso based on clean squashed core + targets"
echo -e "--resetmode : reset INSTALLED Kogaion system state - You're on your own, you've been warned!"
echo -e "--usermode : switch INSTALLED Kogaion system state to usermode - use binary packages from repositories"
echo -e "--devmode : switch INSTALLED Kogaion system state to devmode (aka Gentoo mode) - use source packages from portage tree"
echo -e "--help : display this help and exit"
echo -e ""
;;
*)
echo -e "error: no operation specified, use --help for help"
;;
esac
exit 0
|