* refactor: repurpose build.sh as build preparation It currently does too many things, let's split it up. This needs to be done as we want to move away from a system that copies (also overrides) files from fedora RPMs and then may remove said rpms, resulting in removing our changes, which of course defeats the entire point. A disadvantage this has is that we need to be more mindful and disciplined of when things are needed during the build. Currently we actually do not need any system_files we copy in the stage where we are installing packages/have network access. If we do at some point we will probably either inline files in build-prep.sh or have a 2nd directory with files strictly needed for the build. This is why we can copy all the files to the system after that, just before systemd units get activated, initramfs gets generated, general things we can do offline after we have installed packages are done. Resolves: https://github.com/ublue-os/aurora/issues/2687 * remove useless comment * same treatment for DX * remove unused DX specific version logic We don't use this, we have branches now. * move sysctl before docker install
40 lines
1.9 KiB
Bash
Executable file
40 lines
1.9 KiB
Bash
Executable file
#!/usr/bin/bash
|
|
|
|
echo "::group:: ===$(basename "$0")==="
|
|
|
|
set -eoux pipefail
|
|
|
|
# Enable Flathub
|
|
curl --retry 3 -Lo /etc/flatpak/remotes.d/flathub.flatpakrepo https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
|
|
# Offline Aurora documentation
|
|
ghcurl "https://github.com/ublue-os/aurora-docs/releases/download/0.1/aurora.pdf" --retry 3 -o /tmp/aurora.pdf
|
|
install -Dm0644 -t /usr/share/doc/aurora/ /tmp/aurora.pdf
|
|
|
|
# Weekly user count for fastfetch
|
|
mkdir -p /usr/share/ublue-os
|
|
ghcurl https://raw.githubusercontent.com/ublue-os/countme/main/badge-endpoints/aurora.json | jq -r ".message" > /usr/share/ublue-os/fastfetch-user-count
|
|
|
|
# bazaar weekly downloads used for fastfetch
|
|
curl -X 'GET' \
|
|
'https://flathub.org/api/v2/stats/io.github.kolunmi.Bazaar?all=false&days=1' \
|
|
-H 'accept: application/json' | jq -r ".installs_last_7_days" | numfmt --to=si --round=nearest > /usr/share/ublue-os/bazaar-install-count
|
|
|
|
# Nerdfont symbols
|
|
# to fix motd and prompt atleast temporarily
|
|
ghcurl "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/NerdFontsSymbolsOnly.zip" --retry 3 -o /tmp/nerdfontsymbols.zip
|
|
unzip /tmp/nerdfontsymbols.zip -d /tmp
|
|
mkdir -p /usr/share/fonts/nerd-fonts/NerdFontsSymbolsOnly/
|
|
mv /tmp/SymbolsNerdFont*.ttf /usr/share/fonts/nerd-fonts/NerdFontsSymbolsOnly/
|
|
|
|
# Bash Preexec v0.6.0
|
|
ghcurl https://raw.githubusercontent.com/rcaloras/bash-preexec/b73ed5f7f953207b958f15b1773721dded697ac3/bash-preexec.sh --retry 3 -Lo /usr/share/bash-preexec
|
|
|
|
# use CoreOS' generator for emergency/rescue boot
|
|
# see detail: https://github.com/ublue-os/main/issues/653
|
|
mkdir -p /usr/lib/systemd/system-generators
|
|
ghcurl "https://raw.githubusercontent.com/coreos/fedora-coreos-config/refs/heads/stable/overlay.d/05core/usr/lib/systemd/system-generators/coreos-sulogin-force-generator" --retry 3 -Lo /usr/lib/systemd/system-generators/coreos-sulogin-force-generator
|
|
chmod +x /usr/lib/systemd/system-generators/coreos-sulogin-force-generator
|
|
|
|
echo "::endgroup::"
|
|
|