blob: c4e24be34b7418aa549a1eed7c279ab37727889f (
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
|
#!/usr/bin/env bash
# Vasile needs root privileges and a proper kernel to run
kernelconfig
checkroot
makeisox86 () {
# create live iso layout
mkdir -p "$coremntx86"
mkdir -p "$isobootx86"
mkdir -p "$liverootfsx86"
# mount && copy our core stage 4 image
mount -t squashfs "$chrootx86" "$coremntx86"
rsync -aHAXr --progress "$coremntx86/" "$syncdirx86/"
cp -avx ""$syncdirx86"/boot/"$kernelnamex86"" ""$isonamex86"/boot/vmlinuz"
cp -avx ""$syncdirx86"/boot/"$ramfsnamex86"" ""$isonamex86"/boot/initrd"
sha256sum ""$isonamex86"/boot/vmlinuz" | tee ""$isonamex86"/boot/vmlinuz.sha256"
sha256sum ""$isonamex86"/boot/initrd" | tee ""$isonamex86"/boot/initrd.sha256"
# configure portage && give up control for package / desktop environment installation
isostartx86
isooverlaysx86
isobuildsystemx86
isochrootx86
isostopx86
# squash live environment
mksquashfs "$syncdirx86" ""$syncdirx86".img" -b 1048576 -comp xz -Xdict-size 100%
sha256sum ""$syncdirx86".img" | tee ""$syncdirx86".img.sha256"
}
bootcorex86 () {
# configure live bootloader
git clone https://gitlab.com/rogentos/boot-core.git "$bootcorepath"
cp -avx "$bootcorefiles" "$isonamex86"
}
cleanupisox86 () {
rm -rf "$syncdirx86"
rm -rf "$bootcorepath"
umount "$coremntx86"
}
main () {
chrootchecksumx86
makeisox86
bootcorex86
cleanupisox86
}
main
|