generated from ublue-os/image-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·42 lines (35 loc) · 1.16 KB
/
build.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
#!/bin/bash
set -ouex pipefail
# there is no 'rpm-ostree cliwrap uninstall-from-root', but this is close enough. See:
# https://github.com/coreos/rpm-ostree/blob/6d2548ddb2bfa8f4e9bafe5c6e717cf9531d8001/rust/src/cliwrap.rs#L25-L32
if [ -d /usr/libexec/rpm-ostree/wrapped ]; then
# binaries which could be created if they did not exist thus may not be in wrapped dir
rm -f \
/usr/bin/yum \
/usr/bin/dnf \
/usr/bin/kernel-install
# binaries which were wrapped
mv -f /usr/libexec/rpm-ostree/wrapped/* /usr/bin
rm -fr /usr/libexec/rpm-ostree
fi
rpm-ostree install dnf5 dnf5-plugins
# temp until https://github.com/ublue-os/main/pull/665 trickles down:
mkdir -p /usr/share/dnf/plugins
cat << EOF > /usr/share/dnf/plugins/copr.vendor.conf
[main]
distribution = fedora
EOF
case "${IMAGE}" in
"bluefin"*)
/ctx/build_files/desktop-changes.sh
# /ctx/build_files/desktop-fixups-steam.sh
/ctx/build_files/desktop-packages.sh
;;
"ucore"*)
/ctx/build_files/server-changes.sh
/ctx/build_files/server-cockpit-zfs.sh
/ctx/build_files/server-packages.sh
;;
esac
/ctx/build_files/branding.sh
/ctx/build_files/signing.sh