Skip to content

Commit 3652bfe

Browse files
committed
feat: add image info to os-release
1 parent e4fec72 commit 3652bfe

File tree

5 files changed

+73
-0
lines changed

5 files changed

+73
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ These images are signed with [Sigstore](https://www.sigstore.dev/)'s [cosign](ht
2929
cosign verify --key cosign.pub ghcr.io/ledif/blue95
3030
```
3131

32+
## Project Goals
33+
34+
- Match upstream Fedora Xfce in terms of core system components (e.g., X11 vs Wayland, pulseaudio vs wireplumber, etc).
35+
- Pull in tweaks from [Universal Blue](https://github.com/ublue-os) (e.g. codecs, drivers) to provide a more usable out-of-the box experience.
36+
- Provide an aesthetic that is reminiscent of a bygone era of computing.
37+
38+
**Non goals**:
39+
- Faithful reproduction of design elements from decades old operating systems. Whenever usability and exact replication are at odds, usability and accessibility will generally be preferred.
40+
3241
## Shoutouts
3342
- [@grassmunk](https://github.com/grassmunk)/[@dominichayesferen](https://github.com/dominichayesferen) for [Chicago95](https://github.com/grassmunk/Chicago95) and [Chicagofier](https://github.com/dominichayesferen/Chicagofier) respectively
3443
- [BlueBuild](https://github.com/blue-build), [Universal Blue](https://github.com/ublue-os) and [Fedora](https://fedoraproject.org)

files/scripts/00-image-info.sh

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#!/usr/bin/env bash
2+
3+
set -ouex pipefail
4+
5+
IMAGE_VENDOR="ledif"
6+
IMAGE_NAME="blue95"
7+
IMAGE_PRETTY_NAME="Blue95"
8+
IMAGE_LIKE="fedora"
9+
HOME_URL="https://blue95.org/"
10+
DOCUMENTATION_URL="https://docs.blue95.org"
11+
SUPPORT_URL="https://github.com/ledif/blue95/issues/"
12+
BUG_SUPPORT_URL="https://github.com/ledif/blue95/issues"
13+
VERSION_CODENAME="Ross"
14+
15+
IMAGE_INFO="/usr/share/blue95/image-info.json"
16+
IMAGE_REF="ostree-image-signed:docker://ghcr.io/$IMAGE_VENDOR/$IMAGE_NAME"
17+
18+
FEDORA_MAJOR_VERSION=41
19+
BASE_IMAGE_NAME="Xfce Atomic $FEDORA_MAJOR_VERSION"
20+
BASE_IMAGE="quay.io/fedora-ostree-desktops/xfce-atomic"
21+
22+
cat > $IMAGE_INFO <<EOF
23+
{
24+
"image-name": "$IMAGE_NAME",
25+
"image-vendor": "$IMAGE_VENDOR",
26+
"image-ref": "$IMAGE_REF",
27+
"image-tag":"latest",
28+
"base-image-name": "$BASE_IMAGE",
29+
"fedora-version": "$FEDORA_MAJOR_VERSION"
30+
}
31+
EOF
32+
33+
# OS Release File
34+
sed -i "s/^VARIANT_ID=.*/VARIANT_ID=$IMAGE_NAME/" /usr/lib/os-release
35+
sed -i "s/^PRETTY_NAME=.*/PRETTY_NAME=\"${IMAGE_PRETTY_NAME} $VERSION_CODENAME (FROM Fedora ${BASE_IMAGE_NAME^})\"/" /usr/lib/os-release
36+
sed -i "s/^NAME=.*/NAME=\"$IMAGE_PRETTY_NAME\"/" /usr/lib/os-release
37+
sed -i "s|^HOME_URL=.*|HOME_URL=\"$HOME_URL\"|" /usr/lib/os-release
38+
sed -i "s|^DOCUMENTATION_URL=.*|DOCUMENTATION_URL=\"$DOCUMENTATION_URL\"|" /usr/lib/os-release
39+
sed -i "s|^SUPPORT_URL=.*|SUPPORT_URL=\"$SUPPORT_URL\"|" /usr/lib/os-release
40+
sed -i "s|^BUG_REPORT_URL=.*|BUG_REPORT_URL=\"$BUG_SUPPORT_URL\"|" /usr/lib/os-release
41+
sed -i "s|^CPE_NAME=\"cpe:/o:fedoraproject:fedora|CPE_NAME=\"cpe:/o:universal-blue:${IMAGE_PRETTY_NAME,}|" /usr/lib/os-release
42+
sed -i "s/^DEFAULT_HOSTNAME=.*/DEFAULT_HOSTNAME=\"${IMAGE_PRETTY_NAME,}\"/" /usr/lib/os-release
43+
sed -i "s/^ID=fedora/ID=${IMAGE_PRETTY_NAME,}\nID_LIKE=\"${IMAGE_LIKE}\"/" /usr/lib/os-release
44+
sed -i "/^REDHAT_BUGZILLA_PRODUCT=/d; /^REDHAT_BUGZILLA_PRODUCT_VERSION=/d; /^REDHAT_SUPPORT_PRODUCT=/d; /^REDHAT_SUPPORT_PRODUCT_VERSION=/d" /usr/lib/os-release
45+
sed -i "s/^VERSION_CODENAME=.*/VERSION_CODENAME=${VERSION_CODENAME,,}/" /usr/lib/os-release
46+
47+
#if [[ -n "${SHA_HEAD_SHORT:-}" ]]; then
48+
# echo "BUILD_ID=\"$SHA_HEAD_SHORT\"" >> /usr/lib/os-release
49+
#fi
50+
51+
# Fix issues caused by ID no longer being fedora
52+
sed -i "s/^EFIDIR=.*/EFIDIR=\"fedora\"/" /usr/sbin/grub2-switch-to-blscfg

files/scripts/20-chicago95.sh

+8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ cp Fonts/vga_font/LessPerfectDOSVGA.ttf /usr/share/fonts
2424
cp -r Fonts/bitmap/cronyx-cyrillic /usr/share/fonts
2525
fc-cache -fv
2626

27+
# Use Qt instead of GTK if possible
28+
mkdir -p /usr/share/qt5ct/colors
29+
cp Extras/Chicago95_qt.conf /usr/share/qt5ct/colors
30+
31+
# Terminal
32+
mkdir -p /etc/skel/.local/share/xfce4/terminal/colorschemes
33+
cp Extras/Chicago95.theme /etc/skel/.local/share/xfce4/terminal/colorschemes
34+
2735
# Sounds
2836
cp -Rf sounds/Chicago95 /usr/share/sounds/
2937
cp -f "Extras/Microsoft Windows 95 Startup Sound.ogg" /usr/share/sounds/Chicago95/startup.ogg
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
pkexec lightdm-gtk-greeter-settings

recipes/recipe.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ modules:
2020

2121
- type: script
2222
scripts:
23+
- 00-image-info.sh
2324
- 02-defaults.sh
2425
- 03-ublue.sh
2526
- 10-install-appimages.sh
@@ -33,6 +34,7 @@ modules:
3334
- fastfetch
3435
- lightdm-gtk-greeter-settings
3536
- vorbis-tools
37+
- qt5ct
3638
- qt5-qtstyleplugins
3739
- libcanberra
3840
- sox

0 commit comments

Comments
 (0)