forked from ublue-os/bluefin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·68 lines (46 loc) · 1.77 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·68 lines (46 loc) · 1.77 KB
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
#!/usr/bin/bash
set -eoux pipefail
echo "::group:: Copy Files"
# Speeds up local builds
dnf config-manager setopt keepcache=1
# We need to remove this package here because lots of files we add from `projectbluefin/common` override the rpm files and they also go away when you do `dnf remove`
dnf remove -y ublue-os-luks ublue-os-just ublue-os-udev-rules ublue-os-signing ublue-os-update-services
# Keep *-logos in RPM DB for downstream package installations
# We are not allowed to ship an empty fedora-logos package
dnf -y swap fedora-logos generic-logos
rpm --erase --nodeps --nodb generic-logos
# Copy Files to Container
rsync -rvK /ctx/system_files/shared/ /
mkdir -p /tmp/scripts/helpers
install -Dm0755 /ctx/build_files/shared/utils/ghcurl /tmp/scripts/helpers/ghcurl
export PATH="/tmp/scripts/helpers:$PATH"
echo "::endgroup::"
# Generate image-info.json
/ctx/build_files/base/00-image-info.sh
# Install Kernel and Akmods
/ctx/build_files/base/03-install-kernel-akmods.sh
# Install Additional Packages
/ctx/build_files/base/04-packages.sh
# Install Overrides and Fetch Install
/ctx/build_files/base/05-override-install.sh
# Build GNOME Extensions from Git Submodules
/ctx/build_files/shared/build-gnome-extensions.sh
## late stage changes
# Systemd and Remove Items
/ctx/build_files/base/17-cleanup.sh
# Run workarounds for lf (Likely not needed)
/ctx/build_files/base/18-workarounds.sh
# Regenerate initramfs
/ctx/build_files/base/19-initramfs.sh
if [ "${IMAGE_FLAVOR}" == "dx" ] ; then
# Now we build DX!
/ctx/build_files/shared/build-dx.sh
fi
# Validate all repos are disabled before committing
/ctx/build_files/shared/validate-repos.sh
# Clean Up
echo "::group:: Cleanup"
/ctx/build_files/shared/clean-stage.sh
echo "::endgroup::"
# Simple Tests
/ctx/build_files/base/20-tests.sh