Skip to content

Commit

Permalink
chore: replace rpm-ostree with dnf
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Nov 23, 2024
1 parent 84b825c commit 9c4eb7b
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 17 deletions.
4 changes: 1 addition & 3 deletions lumina/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ RUN chmod +x /tmp/scripts/*.sh /tmp/scripts/*.sh /tmp/scripts/_${BASE_IMAGE}/*.s
/tmp/scripts/setup.sh --base ${BASE_IMAGE} && \
/tmp/scripts/cleanup.sh --base ${BASE_IMAGE} \
&& \
rpm-ostree cleanup -m && \
rm -rf /tmp/* /var/* && \
ostree container commit
rm -rf /tmp/* /var/*
2 changes: 1 addition & 1 deletion lumina/scripts/_base/003-ptyxis-terminal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ FEDORA_VERSION=$VERSION_ID

if [[ "$FEDORA_VERSION" == "40" ]]; then
# Install the package
rpm-ostree install ptyxis
dnf install -y ptyxis
fi
2 changes: 1 addition & 1 deletion lumina/scripts/_base/005-virt-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euox pipefail

rpm-ostree install \
dnf install -y \
libvirt \
virt-manager \
edk2-ovmf
Expand Down
2 changes: 1 addition & 1 deletion lumina/scripts/_base/006-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ gpgcheck=1
gpgkey=https://download.docker.com/linux/fedora/gpg
EOF

rpm-ostree install \
dnf install -y \
docker-ce \
docker-ce-cli \
containerd.io \
Expand Down
2 changes: 1 addition & 1 deletion lumina/scripts/_base/007-install-development-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gpgkey=https://packages.microsoft.com/keys/microsoft.asc
EOF

# Install development tools
rpm-ostree install \
dnf install -y \
code \
gh \
git-credential-oauth
Expand Down
2 changes: 1 addition & 1 deletion lumina/scripts/_base/008-install-nordvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repo_gpgcheck=1
gpgkey=https://repo.nordvpn.com/gpg/nordvpn_public.asc
EOF

rpm-ostree install nordvpn
dnf install -y nordvpn
systemctl enable nordvpnd

rm -f /etc/yum.repos.d/nordvpn.repo
2 changes: 1 addition & 1 deletion lumina/scripts/_base/009-install-google-chrome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ curl --retry 3 --retry-delay 2 --retry-all-errors -sL \
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-google

# Now let's install the packages.
rpm-ostree install google-chrome-stable
dnf install -y google-chrome-stable

# Clean up the yum repo (updates are baked into new images)
rm /etc/yum.repos.d/google-chrome.repo -f
Expand Down
2 changes: 1 addition & 1 deletion lumina/scripts/_base/010-install-1password.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ EOF
#rpm --import https://downloads.1password.com/linux/keys/1password.asc

# Now let's install the packages.
rpm-ostree install 1password 1password-cli
dnf install -y 1password 1password-cli

# Clean up the yum repo (updates are baked into new images)
rm /etc/yum.repos.d/1password.repo -f
Expand Down
2 changes: 1 addition & 1 deletion lumina/scripts/_base/011-podman-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -euox pipefail

rpm-ostree install \
dnf install -y \
crun-vm \
podman-machine
2 changes: 1 addition & 1 deletion lumina/scripts/_base/012-install-brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euox pipefail

# Install Brew dependencies
rpm-ostree install procps-ng curl file git gcc
dnf install -y procps-ng curl file git gcc

# Convince the installer we are in CI
touch /.dockerenv
Expand Down
2 changes: 1 addition & 1 deletion lumina/scripts/_base/013-charm-mods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -euox pipefail

rpm-ostree install \
dnf install -y \
$(curl https://api.github.com/repos/charmbracelet/mods/releases/latest | jq -r '.assets[] | select(.name| test(".*.x86_64.rpm$")).browser_download_url')
2 changes: 1 addition & 1 deletion lumina/scripts/_base/013-twingate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ enabled=1
gpgcheck=0
EOF

rpm-ostree install twingate
dnf install -y twingate

rm /etc/yum.repos.d/twingate.repo
2 changes: 1 addition & 1 deletion lumina/scripts/_silverblue/001-gnome-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FEDORA_VERSION=$VERSION_ID

wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-$(rpm -E %fedora)/ublue-os-staging-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_ublue-os_staging.repo

rpm-ostree install \
dnf install -y \
gnome-shell-extension-appindicator \
gnome-shell-extension-dash-to-dock \
gnome-shell-extension-blur-my-shell \
Expand Down
4 changes: 2 additions & 2 deletions lumina/scripts/_silverblue/002-remove-gnome-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ source /etc/os-release

FEDORA_VERSION=$VERSION_ID

rpm-ostree override remove \
dnf remove -y \
gnome-tour \
gnome-extensions-app \
gnome-system-monitor \
yelp

if [[ "$FEDORA_VERSION" == "40" ]]; then
rpm-ostree override remove gnome-terminal-nautilus
dnf remove -y gnome-terminal-nautilus
fi

0 comments on commit 9c4eb7b

Please sign in to comment.