Skip to content

Commit

Permalink
Merge pull request #4 from Ultramarine-Linux/um38
Browse files Browse the repository at this point in the history
Release UM38
  • Loading branch information
madonuko authored Jun 8, 2023
2 parents 6230a52 + 65d4316 commit 689bdd1
Show file tree
Hide file tree
Showing 12 changed files with 82 additions and 67 deletions.
44 changes: 40 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
branches:
- lapis
paths:
- 'kickstarts/**'
- '!kickstarts/docker/**'
- "kickstarts/**"
- "!kickstarts/docker/**"
workflow_dispatch:

jobs:
Expand All @@ -23,18 +23,26 @@ jobs:
- pantheon
- plasma
container:
image: fedora:37
image: fedora:38
options: --cap-add=SYS_ADMIN --privileged

steps:
- name: Fix /dev
run: |
# https://github.com/marmarek/qubes-builderv2/commit/de097a67da3bcfcf25516b7ac8eea423ecb3a0e8
# docker has tmpfs on /dev with copied content from host, it doesn't update
# when loop0p3 shows up; mount devmpfs to avoid this issue
if [ "$(df -T /dev | tail -1 |cut -f 1 -d ' ')" = "tmpfs" ]; then
mount -t devtmpfs none /dev
fi
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install repositories
run: |
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://github.com/andaman-common-pkgs/subatomic-repos/raw/main/terra37.repo
sudo dnf config-manager --add-repo https://github.com/andaman-common-pkgs/subatomic-repos/raw/main/terra38.repo
sudo dnf install -y lorax-lmc-novirt pykickstart make
- name: Build ISO
run: |
Expand All @@ -45,3 +53,31 @@ jobs:
with:
name: ${{ matrix.variant }}-${{ matrix.arch }}
path: build/
deployment:
runs-on: ubuntu-latest
environment: production
needs: build
steps:
- uses: actions/download-artifact@v3
- name: Prepare images directory
run: |
mkdir -p images
variants=(budgie gnome pantheon plasma)
archs=(x86_64 aarch64)
for variant in "${variants[@]}"; do
for arch in "${archs[@]}"; do
name=$([ "$variant" == "budgie" ] && echo "flagship" || echo "$variant")
mv ${variant}-${arch}/image/*.iso images/ultramarine-${name}-${arch}.iso
sha256sum images/ultramarine-${name}-${arch}.iso > images/ultramarine-${name}-${arch}.iso.sha256sum
done
done
- name: Upload to R2
uses: shallwefootball/s3-upload-action@master
with:
endpoint: ${{ secrets.S3_ENDPOINT }}
aws_key_id: ${{ secrets.S3_KEY_ID }}
aws_secret_access_key: ${{ secrets.S3_SECRET_KEY }}
aws_bucket: "images"
source_dir: "images"
destination_dir: isos/ultramarine/38/
9 changes: 4 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Image
on:
push:
branches:
- lapis
- um38
paths:
- kickstarts/docker/**
workflow_dispatch:
Expand All @@ -20,7 +20,7 @@ jobs:
- docker-minimal
runs-on: ${{ matrix.runner }}
container:
image: fedora:37
image: fedora:38
options: --cap-add=SYS_ADMIN --privileged

services:
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Install repositories
run: |
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://github.com/andaman-common-pkgs/subatomic-repos/raw/main/terra37.repo
sudo dnf config-manager --add-repo https://github.com/andaman-common-pkgs/subatomic-repos/raw/main/terra38.repo
sudo dnf install -y lorax-lmc-novirt pykickstart make moby-engine
# upload image to ghcr.io
- name: Login to ghcr.io
Expand All @@ -49,11 +49,10 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Image
env:
releasever: 37
releasever: 38
run: |
./build.sh -p ${{ matrix.variant }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/release.yml

This file was deleted.

6 changes: 3 additions & 3 deletions Earthfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@

VERSION 0.6

FROM fedora:37
FROM fedora:38

RUN dnf install -y dnf-plugins-core
RUN dnf config-manager --add-repo https://github.com/andaman-common-pkgs/subatomic-repos/raw/main/terra37.repo
RUN dnf config-manager --add-repo https://github.com/andaman-common-pkgs/subatomic-repos/raw/main/terra38.repo
RUN dnf install -y pykickstart lorax-lmc-novirt




build:

ARG --required variant
COPY . .
RUN --privileged ./build.sh $variant
Expand Down
2 changes: 2 additions & 0 deletions kickstarts/base/additional-repos.ks
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ gstreamer1-libav
gstreamer1-vaapi
gstreamer1-plugins-bad-freeworld
gstreamer1-plugins-ugly
gstreamer1-plugin-openh264

# Tools
unrar

Expand Down
21 changes: 15 additions & 6 deletions kickstarts/base/desktop.ks
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,25 @@ bash-completion
bind-utils
btrfs-progs
psmisc

# Multimedia
@multimedia
@sound-and-video

libva-vdpau-driver
libvdpau-va-gl

mesa-*-drivers
-mesa-full*
xorg-x11-drivers
#akmod-nvidia # NVIDIA drivers because nouveau isnt loading for some reason
-mesa-va-drivers
mesa-va-drivers-freeworld
-mesa-vdpau-drivers
mesa-vdpau-drivers-freeworld

xorg-x11-drivers
xorg-x11-drv-nouveau
procps-ng

nvidia-vaapi-driver
#akmod-nvidia # NVIDIA drivers because nouveau isnt loading for some reason

# Fonts
google-noto-sans-fonts
Expand All @@ -44,7 +52,8 @@ firewall-config
# Internet
firefox
-fedora-bookmarks
#mozilla-openh264
mozilla-openh264

# Software
PackageKit
PackageKit-gstreamer-plugin
Expand All @@ -58,9 +67,9 @@ flatpak-selinux-fix

# System
rpm-plugin-systemd-inhibit
system76-scheduler

# Tools
blivet-gui # Storage management
exfatprogs
htop
rsync
Expand Down
6 changes: 6 additions & 0 deletions kickstarts/spins/budgie/budgie-base.ks
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ sed -i 's/^#user-session=.*/user-session=budgie-desktop/' /etc/lightdm/lightdm.c
# set the default wallpaper
mkdir -p /home/liveuser/.local/share/applications
# Update installer icon
sed -i -e 's/Icon=org.fedoraproject.AnacondaInstaller/Icon=drive-harddisk/' /usr/share/applications/liveinst.desktop
# Show harddisk install on the desktop
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop
mkdir /home/liveuser/Desktop
Expand All @@ -25,6 +28,9 @@ cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop
# and mark it as executable
chmod +x /home/liveuser/Desktop/liveinst.desktop
# allow anaconda to use system icon theme
sed -i -e 's/settings.set_property("gtk-icon-theme-name", "Adwaita")//' /usr/lib64/python3.11/site-packages/pyanaconda/ui/gui/__init__.py
# this goes at the end after all other changes.
chown -R liveuser:liveuser /home/liveuser
restorecon -R /home/liveuser
Expand Down
6 changes: 4 additions & 2 deletions kickstarts/spins/budgie/budgie-packages.ks
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ gnome-terminal-nautilus
gnome-system-monitor
-totem
clapper
-gedit
gnome-text-editor
file-roller
evince
Expand Down Expand Up @@ -54,7 +55,8 @@ budgie-extras
budgie-extras-daemon
budgie-desktop-view
gnome-backgrounds
#funny theme
# Don't pull in Fedora's defaults
-budgie-desktop-defaults


%end
%end
3 changes: 2 additions & 1 deletion kickstarts/spins/gnome/gnome-base.ks
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# set livesys session type
sed -i 's/^livesys_session=.*/livesys_session="gnome"/' /etc/sysconfig/livesys
sed -i 's/Fedora/Ultramarine/g' /usr/share/anaconda/gnome/fedora-welcome
sed -i 's/Fedora/Ultramarine/g' /usr/share/applications/fedora-welcome.desktop
sed -i 's/Fedora/Ultramarine/g' /usr/share/applications/org.fedoraproject.welcome-screen.desktop
sed -i 's/Fedora/Ultramarine/g' /usr/share/anaconda/gnome/org.fedoraproject.welcome-screen.desktop
%end
4 changes: 2 additions & 2 deletions kickstarts/spins/gnome/gnome-packages.ks
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ clapper
@^workstation-product-environment
-gedit
gnome-text-editor
gnome-console
-gnome-console # See https://github.com/Ultramarine-Linux/ultramarine/issues/14#issuecomment-1417100074

# Extra ricing
gnome-extensions-app
Expand All @@ -45,4 +45,4 @@ ultramarine-gnome-filesystem



%end
%end
4 changes: 4 additions & 0 deletions kickstarts/spins/pantheon/pantheon-base.ks
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/li
sed -i 's/^#user-session=.*/user-session=pantheon/' /etc/lightdm/lightdm.conf
# set the default wallpaper
gsettings set org.gnome.desktop.background picture-uri file:///usr/share/backgrounds/ultramarine-linux/tortuga-light.png
mkdir -p /home/liveuser/.local/share/applications
# Show harddisk install on the desktop
Expand All @@ -31,6 +32,9 @@ cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop
# and mark it as executable
chmod +x /home/liveuser/Desktop/liveinst.desktop
# allow anaconda to use system icon theme
sed -i -e 's/settings.set_property("gtk-icon-theme-name", "Adwaita")//' /usr/lib64/python3.11/site-packages/pyanaconda/ui/gui/__init__.py
# this goes at the end after all other changes.
chown -R liveuser:liveuser /home/liveuser
restorecon -R /home/liveuser
Expand Down
13 changes: 0 additions & 13 deletions kickstarts/spins/plasma/plasma-base.ks
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,6 @@ AutomountOnLogin=false
AutomountOnPlugin=false
AUTOMOUNTER_EOF
# Copy latte dock config
echo "Copying latte dock config"
mkdir -p /home/liveuser/.config/
cp -av /etc/skel/.config/lattedockrc /home/liveuser/.config/lattedockrc
# copy latte startup file
cp -av /etc/xdg/autostart/org.kde.latte-dock.desktop /home/liveuser/.config/autostart/
# Make it use the Ultramarine layout
sed -i 's/Exec=.*/Exec=/usr/bin/latte-dock --layout=Ultramarine/' /home/liveuser/.config/autostart/org.kde.latte-dock.desktop
# make sure to set the right permissions and selinux contexts
chown -R liveuser:liveuser /home/liveuser/
restorecon -R /home/liveuser/
Expand Down

0 comments on commit 689bdd1

Please sign in to comment.