-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremaster-local.sh
54 lines (34 loc) · 1.09 KB
/
remaster-local.sh
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
#!/bin/bash
# NOTE: set -o pipefail is needed to ensure that any error or failure causes the whole pipeline to fail.
# Without this specification, the CI status will provide a false sense of security by showing builds
# as succeeding in spite of errors or failures.
set -eo pipefail
GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`
bin/welcome
sudo bin/provision-apt-get-update
if [ "$GIT_BRANCH" = 'main' ]; then
sudo bin/provision-apt-get-upgrade
else
echo 'Skipping apt-get upgrade (executed only in the main branch)'
fi
sudo bin/provision-apt-get-install
bin/download-iso
sudo bin/mount-iso
sudo bin/copy-iso
sudo bin/mount-compressed-fs
sudo bin/copy-squashfs
sudo bin/chroot-mounts
sudo bin/chroot-update
if [ "$GIT_BRANCH" = 'main' ]; then
sudo bin/chroot-upgrade
sudo bin/chroot-keepassxc
else
echo 'Skipping chroot apt-get upgrade (executed only in the main branch)'
echo 'Skipping chroot installation of KeePassXC (executed only in the main branch)'
fi
sudo bin/chroot-unmount
sudo bin/chroot-cleanup
sudo bin/edit-iso
sudo bin/edit-squashfs
sudo bin/make-squashfs
sudo bin/make-iso