summaryrefslogtreecommitdiff
path: root/iso32
blob: 21213c84c7c24dbc036cf0b0fb28e07d52cad775 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env bash

# Vasile needs root privileges and a proper kernel to run

kernelconfig
checkroot

# Check core integrity before doing anything
chrootchecksumx86

export local isoarch="x86"
export local isoname=""$releasename"-"$releaseversion"-"$isoarch""
export local tmpiso="/tmp/"$isoname""

dailyisox86 () {
	export local isostatus="DAILY"
	mkdir -p "$tmpiso"
	mkdir -p ""$isoname"-"$isostatus"/livecd"
	mount -t squashfs "$chrootx86" "$tmpiso"
	rsync -aHAXr --progress "$tmpiso" ""$isoname"-"$isostatus"/livecd"
	umount "$tmpiso"
}

alphaisox86 () {
	export local isostatus="ALPHA"
	mkdir -p "$tmpiso"
	mkdir -p ""$isoname"-"$isostatus"/livecd"
	mount -t squashfs "$chrootx86" "$tmpiso"
	rsync -aHAXr --progress "$tmpiso" ""$isoname"-"$isostatus"/livecd"
	umount "$tmpiso"
}

betaisox86 () {
	export local isostatus="BETA"
	mkdir -p "$tmpiso"
	mkdir -p ""$isoname"-"$isostatus"/livecd"
	mount -t squashfs "$chrootx86" "$tmpiso"
	rsync -aHAXr --progress "$tmpiso" ""$isoname"-"$isostatus"/livecd"
	umount "$tmpiso"
}

rcisox86 () {
	export local isostatus="RC"
	mkdir -p "$tmpiso"
	mkdir -p ""$isoname"-"$isostatus"/livecd"
	mount -t squashfs "$chrootx86" "$tmpiso"
	rsync -aHAXr --progress "$tmpiso" ""$isoname"-"$isostatus"/livecd"
	umount "$tmpiso"
}

stableisox86 () {
	export local isostatus="STABLE"
	mkdir -p "$tmpiso"
	mkdir -p ""$isoname"-"$isostatus"/livecd"
	mount -t squashfs "$chrootx86" "$tmpiso"
	rsync -aHAXr --progress "$tmpiso" ""$isoname"-"$isostatus"/livecd"
	umount "$tmpiso"
}

case $2 in
	--daily)			dailyisox86
						;;
	--alpha)			alphaisox86
						;;
	--beta)				betaisox86
						;;
	--rc)				rcisox86
						;;
	--stable)			stableisox86
						;;
esac