summaryrefslogtreecommitdiff
path: root/iso64
blob: 99ff7525793a5cb99d1a7b8e56c5cc872c94274d (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
#!/usr/bin/env bash

# Vasile needs root privileges and a proper kernel to run

kernelconfig
checkroot

makeisox64 () {
	mkdir -p "$coremntx64"
	mkdir -p "$isobootx64"
	mkdir -p "$isoefibootx64"
	mount -t squashfs "$chrootx64" "$coremntx64"
	rsync -aHAXr --progress "$coremntx64/" "$livedirx64/"
	cp -avx ""$livedirx64"/boot/"$kernelnamex64"" ""$isonamex64"/boot/vmlinuz"
	cp -avx ""$livedirx64"/boot/"$ramfsnamex64"" ""$isonamex64"/boot/initrd"
	sha256sum ""$isonamex64"/boot/vmlinuz" | tee ""$isonamex64"/boot/vmlinuz.sha256"
	sha256sum ""$isonamex64"/boot/initrd" | tee ""$isonamex64"/boot/initrd.sha256"
	mksquashfs "$livedirx64" ""$livedirx64".squashfs" -b 1048576 -comp xz -Xdict-size 100%
	sha256sum ""$livedirx64".squashfs" | tee ""$livedirx64".squashfs.sha256"
	touch "$livedirx64"
}

bootcorex64 () {
	git clone https://gitlab.com/rogentos/boot-core.git "$bootcorepath"
	cp -avx "$bootcorefiles" "$isonamex64"
}

cleanupisox64 () {
	rm -rf "$livedirx64"
	rm -rf "$bootcorepath"
	umount "$coremntx64"
}

main () {
	chrootchecksumx64
	makeisox64
	bootcorex64
	cleanupisox64
}

main